[DTrace-devel] [PATCH] test: fix err.* tests forcing XFAIL
Kris Van Hees
kris.van.hees at oracle.com
Fri Dec 1 15:55:36 UTC 2023
Tests cam force an XFAIL condition by returning 67, but when that is
used in err.* tests, it gets reported as XPASS. It should report
XFAIL no matter what.
Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
---
runtest.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/runtest.sh b/runtest.sh
index ff0bc8db..7f9befb6 100755
--- a/runtest.sh
+++ b/runtest.sh
@@ -1423,7 +1423,9 @@ for dt in $dtrace; do
# Exitcode of 67 == XFAIL.
elif [[ $exitcode -eq 67 ]]; then
+ [[ $expected_exitcode -eq 1 ]] && fail=t
xfail=t
+ failmsg="requested by test"
# Exitcodes are not useful if there's been a coredump, but otherwise...
elif [[ $exitcode != $expected_exitcode ]] && [[ $exitcode -ne $TIMEOUTRET ]]; then
--
2.42.0
More information about the DTrace-devel
mailing list