qemu-e2k/tests
Eduardo Habkost 6bf0076643 libqtest: Wait for the right child PID after killing QEMU
When running "make check" with gcov enabled, we get the following
message:

   hw/tmp105.gcda:cannot open data file, assuming not executed

The problem happens because:

 * tmp105-test exits before QEMU exits, because waitpid() at
   qtest_quit() fails;
 * waitpid() fails because there's another process already
   waiting for the QEMU process;
 * The process that is already waiting for QEMU is the child created by
   qtest_init() to run system();
 * qtest_quit() is incorrectly waiting for the QEMU PID directly instead
   of the child created by qtest_init().

This fixes the problem by sending SIGTERM to QEMU, but waiting for the
child process created by qtest_init() (that exits immediately after QEMU
exits).

Reported-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2013-02-01 10:43:34 -06:00
..
qemu-iotests mirror: add buf-size argument to drive-mirror 2013-01-25 18:18:34 +01:00
tcg target-mips: fix incorrect test for MTHLIP 2013-01-31 23:42:04 +01:00
.gitignore target-i386: Topology & APIC ID utility functions 2013-01-27 14:34:27 +01:00
check-block.sh
check-qdict.c
check-qfloat.c
check-qint.c
check-qjson.c
check-qlist.c
check-qstring.c
fdc-test.c
hd-geo-test.c
libi2c-omap.c
libi2c.c
libi2c.h
libqtest.c libqtest: Wait for the right child PID after killing QEMU 2013-02-01 10:43:34 -06:00
libqtest.h
m48t59-test.c tests: Fix {rtc, m48t59}-test build on illumos 2013-01-30 11:18:38 +01:00
Makefile Add XBZRLE testing 2013-02-01 08:32:20 +01:00
qemu-iotests-quick.sh
rtc-test.c tests: Fix {rtc, m48t59}-test build on illumos 2013-01-30 11:18:38 +01:00
test-aio.c aio: Fix return value of aio_poll() 2013-01-17 10:51:42 +01:00
test-coroutine.c
test-hbitmap.c hbitmap: add assertion on hbitmap_iter_init 2013-01-25 18:18:35 +01:00
test-iov.c
test-qmp-commands.c
test-qmp-input-strict.c
test-qmp-input-visitor.c
test-qmp-output-visitor.c
test-string-input-visitor.c tests: add fuzzing to visitor tests 2013-01-26 13:32:29 +00:00
test-string-output-visitor.c
test-thread-pool.c
test-visitor-serialization.c
test-x86-cpuid.c target-i386: Topology & APIC ID utility functions 2013-01-27 14:34:27 +01:00
test-xbzrle.c Add XBZRLE testing 2013-02-01 08:32:20 +01:00
tmp105-test.c