chiark / gitweb /
Test suite: Print better info on t-ref-same failure
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 24 Jul 2016 18:40:20 +0000 (19:40 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 31 Jul 2016 20:50:00 +0000 (21:50 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib

index 6b31c9d..7b7bcfb 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -399,7 +399,8 @@ t-ref-same-val () {
        case "$t_ref_val" in
        '')             ;;
        "$val")         ;;
-       *)              fail "ref varies: $name: $val != $t_ref_val" ;;
+       *)              fail "ref varies: $name:\
+ ${val:-nothing} != ${t_ref_val:-nothing}" ;;
        esac
        t_ref_val="$val"
 }