diff options
author | Robert Mustacchi <rm@fingolfin.org> | 2021-03-03 19:59:21 -0800 |
---|---|---|
committer | Robert Mustacchi <rm@fingolfin.org> | 2021-03-05 09:35:51 -0800 |
commit | 6d14434bff9ecb720b0d5e27ee39f9ec442f837e (patch) | |
tree | 8bc8014122ce84d93ccecb5ecbacbcf411a80c4e | |
parent | 5ed99ae722c542671009b80e3fb34623a2ee0a73 (diff) | |
download | illumos-joyent-6d14434bff9ecb720b0d5e27ee39f9ec442f837e.tar.gz |
13600 Fix regression in ctftest-convert-no-dwarf
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: Gordon Ross <gordon.w.ross@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r-- | usr/src/test/util-tests/tests/ctf/ctftest-convert-no-dwarf.ksh | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr/src/test/util-tests/tests/ctf/ctftest-convert-no-dwarf.ksh b/usr/src/test/util-tests/tests/ctf/ctftest-convert-no-dwarf.ksh index 0db8179476..d422ca3166 100644 --- a/usr/src/test/util-tests/tests/ctf/ctftest-convert-no-dwarf.ksh +++ b/usr/src/test/util-tests/tests/ctf/ctftest-convert-no-dwarf.ksh @@ -38,7 +38,7 @@ fail_no_debug() set +e out=$($ctf_convert $cmd 2>&1) - if [[ $? -eq 0 ]]; then + if (( $? == 0 )); then fail "$cmd succeeded but should have failed" set -e return; @@ -46,11 +46,7 @@ fail_no_debug() set -e - if echo "$out" | grep "is missing debug info" >/dev/null; then - return; - fi - - if echo "$out" | grep "does not contain DWARF data" >/dev/null; then + if echo "$out" | grep "conversion failed due to missing debug data" >/dev/null; then return; fi fail "$cmd: incorrect output $out" |