From c8368674980b299604e3cfe9215c4105acefa516 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Tue, 28 Apr 2015 15:27:51 -0400 Subject: qtest: Add assertion that required environment variable is set Signed-off-by: Ed Maste Reviewed-by: John Snow Message-id: 1427911244-22565-1-git-send-email-emaste@freebsd.org Signed-off-by: John Snow --- tests/libqtest.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/libqtest.c b/tests/libqtest.c index 659a3c7..a525dc5 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-"); -- cgit v1.1