aboutsummaryrefslogtreecommitdiff
path: root/tests/libqtest.c
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2015-04-28 15:27:51 -0400
committerJohn Snow <jsnow@redhat.com>2015-04-28 15:27:51 -0400
commitc8368674980b299604e3cfe9215c4105acefa516 (patch)
tree77d9e608ed3f8975c72c15535d13163b826879ec /tests/libqtest.c
parentcf5aa89e9d32ae39bd9df27c9b2aec03c0d240b2 (diff)
downloadqemu-c8368674980b299604e3cfe9215c4105acefa516.zip
qemu-c8368674980b299604e3cfe9215c4105acefa516.tar.gz
qemu-c8368674980b299604e3cfe9215c4105acefa516.tar.bz2
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>
Diffstat (limited to 'tests/libqtest.c')
-rw-r--r--tests/libqtest.c1
1 files changed, 1 insertions, 0 deletions
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-");