From ef7f8cbdc486e746bc23b0b131b106b6422c8fef Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Mon, 15 Oct 2018 07:27:39 +0000 Subject: [PATCH] make check for bailout case insensitive fix output of skipped tests in tap.sh to prepend a '#' to the skip directive text --- t/ctap/prove.c | 2 +- t/tap.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/t/ctap/prove.c b/t/ctap/prove.c index 1d87035..a419afa 100644 --- a/t/ctap/prove.c +++ b/t/ctap/prove.c @@ -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); diff --git a/t/tap.sh b/t/tap.sh index 0053002..162a4eb 100755 --- 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 } -- 2.40.0