Statistics
| Branch: | Revision:

root / tests / libqtest.c @ 9dd69d65

History | View | Annotate | Download (9.8 kB)

# Date Author Comment
039380a8 06/28/2012 12:26 am Anthony Liguori

qtest: fix infinite loop when QEMU aborts abruptly

From Markus:

Makes "make check" hang:

QTEST_QEMU_BINARY=x86_64-softmmu/qemu-system-x86_64 gtester -k --verbose -m=quick tests/crash-test tests/rtc-test
TEST: tests/crash-test... (pid=972)
qemu-system-x86_64: Device needs media, but drive is empty...
b34d2595 06/22/2012 11:41 am Andreas Färber

libqtest: Fix socket_accept() to pass address_len

accept() expects address_len to point to the length of the sockaddr on
input. Initialize it accordingly.

Resolves an assertion due to EFAULT on illumos.

Signed-off-by: Andreas Färber <>...

a3ca163c 05/10/2012 11:32 am Kevin Wolf

qtest: Add function to send QMP commands

Signed-off-by: Kevin Wolf <>
Reviewed-by: Paolo Bonzini <>

ea7697fc 04/26/2012 09:14 pm Stefan Weil

qtest: Fix more format errors with qtest_sendf

After adding GCC_FMT_ATTR to qtest_sendf, more format errors are reported
by the compiler. These are fixed here.

Signed-off-by: Stefan Weil <>
Signed-off-by: Anthony Liguori <>

ce6bf17a 04/23/2012 10:28 pm Blue Swirl

qtest: fix memread and memwrite on 32 bit hosts

Use PRIx64 to print 64 bit values to avoid truncation
on 32 bit hosts.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Blue Swirl <>

49ee3590 03/30/2012 04:14 pm Anthony Liguori

qtest: add C version of test infrastructure

This also includes a qtest wrapper script to make it easier to launch qtest
tests directly.

Signed-off-by: Anthony Liguori <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>