diff options
author | Kate Ward <kate.ward@forestent.com> | 2017-10-18 00:02:22 +0200 |
---|---|---|
committer | Kate Ward <kate.ward@forestent.com> | 2017-10-18 00:02:22 +0200 |
commit | e46d63222b73ff7d304f960f383d0dc5a25cd711 (patch) | |
tree | a14b82b553ef82a6610b92218ab4d3588dc7eb7a /shflags_public_test.sh | |
parent | 8b11148db2b39c718a1280311505c444ee231240 (diff) | |
download | shflags-e46d63222b73ff7d304f960f383d0dc5a25cd711.tar.gz |
Changed th_queryReturn() to not purposly leak the th_return variable.
Diffstat (limited to 'shflags_public_test.sh')
-rwxr-xr-x | shflags_public_test.sh | 3 |
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 \ |