btrfs-progs: tests: teach run_mayfail about sigabrt
authorDavid Sterba <dsterba@suse.com>
Tue, 4 Oct 2016 16:53:38 +0000 (18:53 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 5 Oct 2016 10:39:01 +0000 (12:39 +0200)
Mayfail helper should stop when we encoutner an abort.

Signed-off-by: David Sterba <dsterba@suse.com>
tests/common

index d965c12..264424d 100644 (file)
@@ -62,6 +62,8 @@ run_mayfail()
                echo "failed (ignored, ret=$ret): $@" >> $RESULTS
                if [ $ret == 139 ]; then
                        _fail "mayfail: returned code 139 (SEGFAULT), not ignored"
+               elif [ $ret == 134 ]; then
+                       _fail "mayfail: returned code 134 (SIGABRT), not ignored"
                fi
                return $ret
        fi