Skip to content

Commit

Permalink
libqtest: launch QEMU with QEMU_AUDIO_DRV=none
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stefanhaRH committed Aug 28, 2014
1 parent 7ac9a9d commit 6b02921
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/libqtest.c
Expand Up @@ -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 "
Expand Down

0 comments on commit 6b02921

Please sign in to comment.