aboutsummaryrefslogtreecommitdiff
path: root/shflags_public_test.sh
diff options
context:
space:
mode:
authorKate Ward <kate.ward@forestent.com>2017-10-18 00:02:22 +0200
committerKate Ward <kate.ward@forestent.com>2017-10-18 00:02:22 +0200
commite46d63222b73ff7d304f960f383d0dc5a25cd711 (patch)
treea14b82b553ef82a6610b92218ab4d3588dc7eb7a /shflags_public_test.sh
parent8b11148db2b39c718a1280311505c444ee231240 (diff)
downloadshflags-e46d63222b73ff7d304f960f383d0dc5a25cd711.tar.gz
Changed th_queryReturn() to not purposly leak the th_return variable.
Diffstat (limited to 'shflags_public_test.sh')
-rwxr-xr-xshflags_public_test.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/shflags_public_test.sh b/shflags_public_test.sh
index 32e3076..47da2cc 100755
--- a/shflags_public_test.sh
+++ b/shflags_public_test.sh
@@ -27,10 +27,9 @@ _testHelp()
FLAGS ${flag} >"${stdoutF}" 2>"${stderrF}"
echo $? >"${returnF}"
)
- th_queryReturn
assertTrue \
'short help request should have returned a true exit code.' \
- ${th_return}
+ "$(th_queryReturn)"
grep 'show this help' "${stderrF}" >/dev/null
grepped=$?
assertTrue \