iotests: disable core dumps in test 061
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.
Since we cannot guarantee that abort() will produce a core dump, we
should use SIGKILL instead (that does not produce any) and update the
test output accordingly.
Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
			
			
This commit is contained in:
		
							parent
							
								
									c49d3411fa
								
							
						
					
					
						commit
						efd0fbbcf5
					
				| 
						 | 
					@ -58,8 +58,8 @@ echo
 | 
				
			||||||
echo "=== Testing dirty version downgrade ==="
 | 
					echo "=== Testing dirty version downgrade ==="
 | 
				
			||||||
echo
 | 
					echo
 | 
				
			||||||
IMGOPTS="compat=1.1,lazy_refcounts=on" _make_test_img 64M
 | 
					IMGOPTS="compat=1.1,lazy_refcounts=on" _make_test_img 64M
 | 
				
			||||||
$QEMU_IO -c "write -P 0x2a 0 128k" -c flush -c abort "$TEST_IMG" 2>&1 \
 | 
					$QEMU_IO -c "write -P 0x2a 0 128k" -c flush \
 | 
				
			||||||
    | _filter_qemu_io
 | 
					         -c "sigraise $(kill -l KILL)" "$TEST_IMG" 2>&1 | _filter_qemu_io
 | 
				
			||||||
$PYTHON qcow2.py "$TEST_IMG" dump-header
 | 
					$PYTHON qcow2.py "$TEST_IMG" dump-header
 | 
				
			||||||
$QEMU_IMG amend -o "compat=0.10" "$TEST_IMG"
 | 
					$QEMU_IMG amend -o "compat=0.10" "$TEST_IMG"
 | 
				
			||||||
$PYTHON qcow2.py "$TEST_IMG" dump-header
 | 
					$PYTHON qcow2.py "$TEST_IMG" dump-header
 | 
				
			||||||
| 
						 | 
					@ -92,8 +92,8 @@ echo
 | 
				
			||||||
echo "=== Testing dirty lazy_refcounts=off ==="
 | 
					echo "=== Testing dirty lazy_refcounts=off ==="
 | 
				
			||||||
echo
 | 
					echo
 | 
				
			||||||
IMGOPTS="compat=1.1,lazy_refcounts=on" _make_test_img 64M
 | 
					IMGOPTS="compat=1.1,lazy_refcounts=on" _make_test_img 64M
 | 
				
			||||||
$QEMU_IO -c "write -P 0x2a 0 128k" -c flush -c abort "$TEST_IMG" 2>&1 \
 | 
					$QEMU_IO -c "write -P 0x2a 0 128k" -c flush \
 | 
				
			||||||
    | _filter_qemu_io
 | 
					         -c "sigraise $(kill -l KILL)" "$TEST_IMG" 2>&1 | _filter_qemu_io
 | 
				
			||||||
$PYTHON qcow2.py "$TEST_IMG" dump-header
 | 
					$PYTHON qcow2.py "$TEST_IMG" dump-header
 | 
				
			||||||
$QEMU_IMG amend -o "lazy_refcounts=off" "$TEST_IMG"
 | 
					$QEMU_IMG amend -o "lazy_refcounts=off" "$TEST_IMG"
 | 
				
			||||||
$PYTHON qcow2.py "$TEST_IMG" dump-header
 | 
					$PYTHON qcow2.py "$TEST_IMG" dump-header
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -57,7 +57,7 @@ No errors were found on the image.
 | 
				
			||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
 | 
					Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
 | 
				
			||||||
wrote 131072/131072 bytes at offset 0
 | 
					wrote 131072/131072 bytes at offset 0
 | 
				
			||||||
128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | 
					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: Killed                  ( exec "$QEMU_IO_PROG" $QEMU_IO_OPTIONS "$@" )
 | 
				
			||||||
magic                     0x514649fb
 | 
					magic                     0x514649fb
 | 
				
			||||||
version                   3
 | 
					version                   3
 | 
				
			||||||
backing_file_offset       0x0
 | 
					backing_file_offset       0x0
 | 
				
			||||||
| 
						 | 
					@ -215,7 +215,7 @@ No errors were found on the image.
 | 
				
			||||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
 | 
					Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
 | 
				
			||||||
wrote 131072/131072 bytes at offset 0
 | 
					wrote 131072/131072 bytes at offset 0
 | 
				
			||||||
128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | 
					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: Killed                  ( exec "$QEMU_IO_PROG" $QEMU_IO_OPTIONS "$@" )
 | 
				
			||||||
magic                     0x514649fb
 | 
					magic                     0x514649fb
 | 
				
			||||||
version                   3
 | 
					version                   3
 | 
				
			||||||
backing_file_offset       0x0
 | 
					backing_file_offset       0x0
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue