提交 c8368674 编写于 作者: E Ed Maste 提交者: John Snow

qtest: Add assertion that required environment variable is set

Signed-off-by: NEd Maste <emaste@freebsd.org>
Reviewed-by: NJohn Snow <jsnow@redhat.com>
Message-id: 1427911244-22565-1-git-send-email-emaste@freebsd.org
Signed-off-by: NJohn Snow <jsnow@redhat.com>
上级 cf5aa89e
......@@ -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-");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册