diff mbox

[v2,2/6] libqtest: launch QEMU with QEMU_AUDIO_DRV=none

Message ID 1409137736-827-3-git-send-email-stefanha@redhat.com
State New
Headers show

Commit Message

Stefan Hajnoczi Aug. 27, 2014, 11:08 a.m. UTC
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>
---
 tests/libqtest.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Gerd Hoffmann Aug. 27, 2014, 12:58 p.m. UTC | #1
On Mi, 2014-08-27 at 12:08 +0100, Stefan Hajnoczi wrote:

> 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>
diff mbox

Patch

diff --git a/tests/libqtest.c b/tests/libqtest.c
index ed55686..5e458e8 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 "