btrfs-progs: tests: teach run_mayfail about sigabrt
Mayfail helper should stop when we encoutner an abort. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
942dc5f29d
commit
a08ca376f7
|
@ -62,6 +62,8 @@ run_mayfail()
|
||||||
echo "failed (ignored, ret=$ret): $@" >> $RESULTS
|
echo "failed (ignored, ret=$ret): $@" >> $RESULTS
|
||||||
if [ $ret == 139 ]; then
|
if [ $ret == 139 ]; then
|
||||||
_fail "mayfail: returned code 139 (SEGFAULT), not ignored"
|
_fail "mayfail: returned code 139 (SEGFAULT), not ignored"
|
||||||
|
elif [ $ret == 134 ]; then
|
||||||
|
_fail "mayfail: returned code 134 (SIGABRT), not ignored"
|
||||||
fi
|
fi
|
||||||
return $ret
|
return $ret
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue