diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libqtest.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/libqtest.c b/tests/libqtest.c index 659a3c7c63..a525dc532c 100644 --- a/tests/libqtest.c +++ b/tests/libqtest.c @@ -488,6 +488,7 @@ void qtest_qmp_eventwait(QTestState *s, const char *event) const char *qtest_get_arch(void) { const char *qemu = getenv("QTEST_QEMU_BINARY"); + g_assert(qemu != NULL); const char *end = strrchr(qemu, '/'); return end + strlen("/qemu-system-"); |