guix-commits
[Top][All Lists]
Advanced

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

04/06: store: Adjust UTF-8 test to Guile 2.2.


From: Ludovic Courtès
Subject: 04/06: store: Adjust UTF-8 test to Guile 2.2.
Date: Wed, 15 Mar 2017 10:26:23 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit a9a0227c0127e1813190a7664f7ad858e791480d
Author: Ludovic Courtès <address@hidden>
Date:   Wed Mar 15 13:54:29 2017 +0100

    store: Adjust UTF-8 test to Guile 2.2.
    
    * tests/store.scm ("current-build-output-port, UTF-8 + garbage"): On
    Guile 2.2, expect REPLACEMENT CHARACTER instead of '?'.
---
 tests/store.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/store.scm b/tests/store.scm
index 64d3553..c0ebe7b 100644
--- a/tests/store.scm
+++ b/tests/store.scm
@@ -383,7 +383,9 @@
                      (package-derivation %store %bootstrap-guile))))
             (guard (c ((nix-protocol-error? c) #t))
               (build-derivations %store (list d))))))))
-   "garbage: ?lambda: λ"))
+   (cond-expand
+     (guile-2.0 "garbage: ?lambda: λ")
+     (else      "garbage: �lambda: λ"))))
 
 (test-assert "log-file, derivation"
   (let* ((b (add-text-to-store %store "build" "echo $foo > $out" '()))



reply via email to

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