t: planned feature for negative limits
authorMischa POSLAWSKY <perl@shiar.org>
Sat, 27 Mar 2021 21:59:58 +0000 (22:59 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 18 Apr 2022 09:04:29 +0000 (11:04 +0200)
Do not count names ending in #TODO as failing.

t/regress.t
t/t1504-bottom_limit.in [new symlink]
t/t1504-bottom_limit_-L-3_#TODO.out [new file with mode: 0644]

index 508d3617bc7e6fe7c7562aed1c54f70745649426..e149b36dad00e3e263f27f8529830da468eb1c39 100755 (executable)
@@ -68,8 +68,15 @@ do
 
        if test 0 != $?
        then
-               fail_count=$((fail_count+1))
-               color 1\;31
+               case "$name" in
+               *' #TODO')
+                       color 33
+                       ;;
+               *)
+                       fail_count=$((fail_count+1))
+                       color 1\;31
+               esac
+
                printf 'not '
        fi
        echo "ok $test_count - $name"
diff --git a/t/t1504-bottom_limit.in b/t/t1504-bottom_limit.in
new file mode 120000 (symlink)
index 0000000..0dbe582
--- /dev/null
@@ -0,0 +1 @@
+t1002-sinewave.in
\ No newline at end of file
diff --git a/t/t1504-bottom_limit_-L-3_#TODO.out b/t/t1504-bottom_limit_-L-3_#TODO.out
new file mode 100644 (file)
index 0000000..6bf764d
--- /dev/null
@@ -0,0 +1,3 @@
+3350 ------------
+2392 --------
+1411 -----