diff options
author | Ed Maste <emaste@freebsd.org> | 2015-04-28 15:27:51 -0400 |
---|---|---|
committer | John Snow <jsnow@redhat.com> | 2015-04-28 15:27:51 -0400 |
commit | c8368674980b299604e3cfe9215c4105acefa516 (patch) | |
tree | 77d9e608ed3f8975c72c15535d13163b826879ec | |
parent | cf5aa89e9d32ae39bd9df27c9b2aec03c0d240b2 (diff) |
qtest: Add assertion that required environment variable is set
Signed-off-by: Ed Maste <emaste@freebsd.org>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 1427911244-22565-1-git-send-email-emaste@freebsd.org
Signed-off-by: John Snow <jsnow@redhat.com>
-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-"); |