]> pd.if.org Git - zpackage/blobdiff - t/tap.sh
fix failsok tap function
[zpackage] / t / tap.sh
index c9fe8788b52694a69da2768638c4537c4018a1c5..8f9eabe6cf3b3bf825d218af41f4bac3e399e052 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 "$*"