guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

07/07: tests: Gracefully skip zlib test when zlib is missing.


From: guix-commits
Subject: 07/07: tests: Gracefully skip zlib test when zlib is missing.
Date: Tue, 16 Apr 2019 11:33:16 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit b2c3640d2baa7bc929bf21880e6fb2785f5997f6
Author: Ludovic Courtès <address@hidden>
Date:   Tue Apr 16 17:29:25 2019 +0200

    tests: Gracefully skip zlib test when zlib is missing.
    
    * tests/zlib.scm: Use 'test-skip' instead of (exit 77)
    when (zlib-available?) returns false.
---
 tests/zlib.scm | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/tests/zlib.scm b/tests/zlib.scm
index 5455240..7c595a4 100644
--- a/tests/zlib.scm
+++ b/tests/zlib.scm
@@ -1,5 +1,5 @@
 ;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2016 Ludovic Courtès <address@hidden>
+;;; Copyright © 2016, 2019 Ludovic Courtès <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -26,11 +26,10 @@
 
 ;; Test the (guix zlib) module.
 
-(unless (zlib-available?)
-  (exit 77))
-
 (test-begin "zlib")
 
+(unless (zlib-available?)
+  (test-skip 1))
 (test-assert "compression/decompression pipe"
   (let ((data (random-bytevector (+ (random 10000)
                                     (* 20 1024)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]