SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,21 @@
--- src/shunit2_test_misc.sh.orig Sat Dec 27 22:07:52 2014
+++ src/shunit2_test_misc.sh Sat Dec 27 22:09:17 2014
@@ -35,12 +35,18 @@ testUnboundVariable()
EOF
( exec ${SHUNIT_SHELL:-sh} "${unittestF}" >"${stdoutF}" 2>"${stderrF}" )
assertFalse 'expected a non-zero exit value' $?
+# OpenBSD sh and ksh do not implement handling of ERR or EXIT traps in functions
+case $SHUNIT_SHELL in
+/bin/sh|/bin/ksh) ;;
+*)
grep '^ASSERT:Unknown failure' "${stdoutF}" >/dev/null
assertTrue 'assert message was not generated' $?
grep '^Ran [0-9]* test' "${stdoutF}" >/dev/null
assertTrue 'test count message was not generated' $?
grep '^FAILED' "${stdoutF}" >/dev/null
assertTrue 'failure message was not generated' $?
+ ;;
+esac
}
testIssue7()