]> Git Repo - qemu.git/commit
tests/libqtest: Print error instead of aborting when env variable is missing
authorThomas Huth <[email protected]>
Mon, 22 May 2017 15:40:54 +0000 (17:40 +0200)
committerMichael Tokarev <[email protected]>
Sun, 4 Jun 2017 15:42:55 +0000 (18:42 +0300)
commit7c933ad61b8f3f5133757c8cbaedd712e5be6f78
treee2424db0e9d0daa847372ceb98a448795110c9da
parent7a0bbd55e5a1844996896fea5c006e3263c345e2
tests/libqtest: Print error instead of aborting when env variable is missing

When you currently try to run a test directly from the command line
without setting the QTEST_QEMU_BINARY environment variable first,
you are presented with an unhelpful assertion message like this:

 ERROR:tests/libqtest.c:163:qtest_init_without_qmp_handshake:
 assertion failed: (qemu_binary != NULL)
 Aborted (core dumped)

Let's replace the assert() with a more user friendly error message
instead.

Reviewed-by: Markus Armbruster <[email protected]>
Signed-off-by: Thomas Huth <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
tests/libqtest.c
This page took 0.023393 seconds and 4 git commands to generate.