diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2014-08-27 12:08:52 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-08-28 13:42:25 +0100 |
commit | 6b029216056b8e64a6b5b7c43d1342cd4ef7ebc0 (patch) | |
tree | df0c136c47593354662c792aa7f35802cdce25f5 /tests/libqtest.c | |
parent | 7ac9a9d6e1fbc702dee8d2a2eb3151bc704104dc (diff) | |
download | qemu-6b029216056b8e64a6b5b7c43d1342cd4ef7ebc0.tar.gz qemu-6b029216056b8e64a6b5b7c43d1342cd4ef7ebc0.tar.bz2 qemu-6b029216056b8e64a6b5b7c43d1342cd4ef7ebc0.zip |
libqtest: launch QEMU with QEMU_AUDIO_DRV=none
No test case actually uses the audio backend. Disable audio to prevent
warnings on hosts with no sound hardware present:
GTESTER check-qtest-aarch64
sdl: SDL_OpenAudio failed
sdl: Reason: No available audio device
sdl: SDL_OpenAudio failed
sdl: Reason: No available audio device
audio: Failed to create voice `lm4549.out'
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'tests/libqtest.c')
-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 ed55686ce0..5e458e884e 100644 --- a/tests/libqtest.c +++ b/tests/libqtest.c @@ -165,6 +165,7 @@ QTestState *qtest_init(const char *extra_args) s->qemu_pid = fork(); if (s->qemu_pid == 0) { + setenv("QEMU_AUDIO_DRV", "none", true); command = g_strdup_printf("exec %s " "-qtest unix:%s,nowait " "-qtest-log %s " |