]> pd.if.org Git - zpackage/commitdiff
make check for bailout case insensitive
authorNathan Wagner <nw@hydaspes.if.org>
Mon, 15 Oct 2018 07:27:39 +0000 (07:27 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sat, 3 Nov 2018 12:39:52 +0000 (12:39 +0000)
fix output of skipped tests in tap.sh to prepend a '#' to the skip
directive text

t/ctap/prove.c
t/tap.sh

index 1d870355b55602b191caad08e2dfb3e2bbfa0ea1..a419afa7b78667a7d654643dc5882920aa2b61cd 100644 (file)
@@ -96,7 +96,7 @@ int runone(struct testrun *run) {
 
        regcomp(&plan, "^[[:digit:]]+\\.\\.([[:digit:]]+)", REG_EXTENDED);
        regcomp(&diagnostic, "#[[:space:]]*(.+)", REG_EXTENDED);
-       regcomp(&bail, "^Bail Out![[:space:]]*(.+)", REG_EXTENDED);
+       regcomp(&bail, "^Bail Out![[:space:]]*(.+)", REG_EXTENDED|REG_ICASE);
        regcomp(&version, "^TAP Version ([[:digit:]]+)", REG_EXTENDED);
 
        regcomp(&test, "^(not )?ok([[:space:]]*([[:digit:]]+))?", REG_EXTENDED);
index 00530027795577e8cd9d51c46b297e34461f5b4c..162a4eb0dc670a7d7f3d81aa02201ce0f5a9e89c 100755 (executable)
--- a/t/tap.sh
+++ b/t/tap.sh
@@ -121,6 +121,6 @@ skip() {
        while [ $tap_skipping -gt 0 ]; do
                tn=$((tn + 1))
                tap_skipping=$((tap_skipping - 1))
-               printf 'ok %d - skip %s\n' $tn "$*"
+               printf 'ok %d - skip %s\n' $tn "$*"
        done
 }