qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] iotests: disable core dumps in test 061


From: Alberto Garcia
Subject: [Qemu-devel] [PATCH] iotests: disable core dumps in test 061
Date: Wed, 23 Sep 2015 19:11:41 +0300

Commit 934659c460 disabled the supression of segmentation faults in
bash tests. The new output of test 061, however, assumes that a core
dump will be produced if a program aborts. This is not necessarily the
case because core dumps can be disabled using ulimit.

We cannot guarantee that core dumps can be enabled in all cases, so we
should disable them completely and update the test output accordingly.

Signed-off-by: Alberto Garcia <address@hidden>
---
 tests/qemu-iotests/061     | 3 +++
 tests/qemu-iotests/061.out | 4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/tests/qemu-iotests/061 b/tests/qemu-iotests/061
index 1df887a..7d8415b 100755
--- a/tests/qemu-iotests/061
+++ b/tests/qemu-iotests/061
@@ -43,6 +43,9 @@ _supported_fmt qcow2
 _supported_proto file
 _supported_os Linux
 
+# Disable core dumps or they'll mess up the test output
+ulimit -c 0
+
 echo
 echo "=== Testing version downgrade with zero expansion ==="
 echo
diff --git a/tests/qemu-iotests/061.out b/tests/qemu-iotests/061.out
index a683f46..0499138 100644
--- a/tests/qemu-iotests/061.out
+++ b/tests/qemu-iotests/061.out
@@ -57,7 +57,7 @@ No errors were found on the image.
 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
 wrote 131072/131072 bytes at offset 0
 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
-./common.config: Aborted                 (core dumped) ( exec "$QEMU_IO_PROG" 
$QEMU_IO_OPTIONS "$@" )
+./common.config: Aborted                 ( exec "$QEMU_IO_PROG" 
$QEMU_IO_OPTIONS "$@" )
 magic                     0x514649fb
 version                   3
 backing_file_offset       0x0
@@ -215,7 +215,7 @@ No errors were found on the image.
 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
 wrote 131072/131072 bytes at offset 0
 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
-./common.config: Aborted                 (core dumped) ( exec "$QEMU_IO_PROG" 
$QEMU_IO_OPTIONS "$@" )
+./common.config: Aborted                 ( exec "$QEMU_IO_PROG" 
$QEMU_IO_OPTIONS "$@" )
 magic                     0x514649fb
 version                   3
 backing_file_offset       0x0
-- 
2.5.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]