mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-26 06:37:45 +08:00
Add missing dummy sound device, to prevent sound based tests from
failing / flaking.
Fixes: QTBUG-120655
Pick-to: 6.6 6.5
Change-Id: I555d1391b49892226732f36c6a67be7d8dae3d4b
Reviewed-by: Elias Toivola <elias.toivola@qt.io>
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
(cherry picked from commit 198cd69244)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
18 lines
388 B
Bash
Executable File
18 lines
388 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (C) 2023 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
|
|
set -ex
|
|
|
|
# load dummy sound module
|
|
sudo modprobe snd-dummy
|
|
|
|
# Check result
|
|
if lsmod | grep -q snd_dummy
|
|
then
|
|
echo "(**) Dummy sound driver loaded.";
|
|
else
|
|
echo "(EE) Failed to load dummy sound driver.";
|
|
exit 1;
|
|
fi
|