diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-10-05 11:45:55 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-10-08 21:08:27 +0200 |
commit | 912eef205ae9ccfd477c343a51a7c2dcfae2ba43 (patch) | |
tree | b42bdc0d01e210c6b52a759e630679f306cbb05e /tests/qtest | |
parent | 63a13c08055072e92129a1d0ffeeecdcac6ad3d4 (diff) | |
download | qemu-912eef205ae9ccfd477c343a51a7c2dcfae2ba43.zip qemu-912eef205ae9ccfd477c343a51a7c2dcfae2ba43.tar.gz qemu-912eef205ae9ccfd477c343a51a7c2dcfae2ba43.tar.bz2 |
audio, qtest: get rid of QEMU_AUDIO_DRV
Default audio devices can now be created with "-audio". Tests for
soundcards were already using "-audiodev" if they want to specify a
particular backend, for the others remove the last remnants of
legacy audio configuration.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/qtest')
-rw-r--r-- | tests/qtest/libqtest.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/qtest/libqtest.c b/tests/qtest/libqtest.c index b1eba71..3f94a4f 100644 --- a/tests/qtest/libqtest.c +++ b/tests/qtest/libqtest.c @@ -421,9 +421,6 @@ static QTestState *G_GNUC_PRINTF(1, 2) qtest_spawn_qemu(const char *fmt, ...) int sig = SIGKILL; procctl(P_PID, getpid(), PROC_PDEATHSIG_CTL, &sig); #endif /* __FreeBSD__ */ - if (!g_setenv("QEMU_AUDIO_DRV", "none", true)) { - exit(1); - } execlp("/bin/sh", "sh", "-c", command->str, NULL); exit(1); } @@ -464,6 +461,7 @@ QTestState *qtest_init_without_qmp_handshake(const char *extra_args) "-chardev socket,path=%s,id=char0 " "-mon chardev=char0,mode=control " "-display none " + "-audio none " "%s" " -accel qtest", socket_path, |