diff options
author | Fam Zheng <famz@redhat.com> | 2018-03-01 09:14:13 +0800 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2018-03-09 15:40:07 +0100 |
commit | 0bfed484a51e602ec77361c79c1caede396fb242 (patch) | |
tree | c9141be89dda1604e51ba44df1a9b9caddea5237 /tests/qemu-iotests/059 | |
parent | 990dc39cfa9b72fbe743a850db5542870caf7e05 (diff) | |
download | qemu-0bfed484a51e602ec77361c79c1caede396fb242.zip |
iotests: Skip test for ENOMEM error
The AFL image is to exercise the code validating image size, which
doesn't work on 32 bit or when out of memory (there is a large
allocation before the interesting point). So check that and skip the
test, instead of faking the result.
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 20180301011413.11531-1-famz@redhat.com
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/059')
-rwxr-xr-x | tests/qemu-iotests/059 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/qemu-iotests/059 b/tests/qemu-iotests/059 index 40f89eae18..530bbbe6ce 100755 --- a/tests/qemu-iotests/059 +++ b/tests/qemu-iotests/059 @@ -152,9 +152,8 @@ done echo echo "=== Testing afl image with a very large capacity ===" _use_sample_img afl9.vmdk.bz2 -# The sed makes this test pass on machines with little RAM -# (and also with 32 bit builds) -_img_info | sed -e 's/Cannot allocate memory/Invalid argument/' +_img_info | grep -q 'Cannot allocate memory' && _notrun "Insufficent memory, skipped test" +_img_info _cleanup_test_img # success, all done |