]> pd.if.org Git - zpackage/blobdiff - t/tap.sh
fix tap diagnostic
[zpackage] / t / tap.sh
index c9fe8788b52694a69da2768638c4537c4018a1c5..e3a345784092fb12475e02d4bdd2b4395ae76cd4 100755 (executable)
--- a/t/tap.sh
+++ b/t/tap.sh
@@ -74,7 +74,7 @@ failsok() {
        note=
        if [ $rv -eq 0 ]; then
                printf 'not ';
-               note=$(printf 'got "%d" expected "%d"' "$rv" "0")
+               note=$(printf 'got "%d" expected non-zero' "$rv")
        fi
        tn=$((tn + 1))
        printf 'ok %d - %s\n' $tn "$*"
@@ -99,7 +99,7 @@ okstreq() {
        note=
        if [ "$1" != "$2" ]; then
                printf 'not ';
-               note=$(printf 'got "%s" expected "%s"' "$1" "$2")
+               note=$(printf 'got "%s"\n# expected "%s"' "$1" "$2")
        fi
 
        shift;shift;