t: report missing output as TODO
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 11 Sep 2019 12:43:15 +0000 (14:43 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 12 Sep 2019 15:48:11 +0000 (17:48 +0200)
TAP syntax to report expected failure.

t/regress.t

index 734e42dbc876cc4864868db745c33728497ab71a..eedefbbb1a7f303d77e56ee306c508700d34ab38 100755 (executable)
@@ -45,8 +45,14 @@ do
                        continue
                fi
                "$@" >$file.out 2>&1
+       elif test -e "$file.out"
+       then
+               "$@" 2>&1 | diffcmd "$file.out" -
        else
-               if test -e $file.out; then "$@" 2>&1 | diffcmd "$file.out" -; fi
+               color 33
+               echo "not ok $test_count - $name # TODO"
+               color 0
+               continue
        fi
 
        if test 0 != $?