Skip to content

Commit

Permalink
qtest: Add assertion that required environment variable is set
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
emaste authored and jnsnow committed Apr 28, 2015
1 parent cf5aa89 commit c836867
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/libqtest.c
Expand Up @@ -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-");
Expand Down

0 comments on commit c836867

Please sign in to comment.