aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2023-09-07 16:39:42 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2023-09-08 13:08:52 +0300
commit0084f6834a13aedaf4375fa34161c2f6ff0aeaa8 (patch)
tree2760a900a8adb82be8c7790677266565de573416 /tests
parent95eac43cb5f88afa7610470685bc5d25b301bd4d (diff)
downloadqemu-0084f6834a13aedaf4375fa34161c2f6ff0aeaa8.zip
qemu-0084f6834a13aedaf4375fa34161c2f6ff0aeaa8.tar.gz
qemu-0084f6834a13aedaf4375fa34161c2f6ff0aeaa8.tar.bz2
tests/qtest/usb-hcd: Remove the empty "init" tests
These tests do nothing additional compared to the other test, so let's remove the empty functions to avoid wasting some few precious test cycles here. Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'tests')
-rw-r--r--tests/qtest/usb-hcd-uhci-test.c5
-rw-r--r--tests/qtest/usb-hcd-xhci-test.c6
2 files changed, 0 insertions, 11 deletions
diff --git a/tests/qtest/usb-hcd-uhci-test.c b/tests/qtest/usb-hcd-uhci-test.c
index 28751f5..4446555 100644
--- a/tests/qtest/usb-hcd-uhci-test.c
+++ b/tests/qtest/usb-hcd-uhci-test.c
@@ -17,10 +17,6 @@
static QOSState *qs;
-static void test_uhci_init(void)
-{
-}
-
static void test_port(int port)
{
struct qhc uhci;
@@ -71,7 +67,6 @@ int main(int argc, char **argv)
return 0;
}
- qtest_add_func("/uhci/pci/init", test_uhci_init);
qtest_add_func("/uhci/pci/port1", test_port_1);
qtest_add_func("/uhci/pci/hotplug", test_uhci_hotplug);
if (qtest_has_device("usb-storage")) {
diff --git a/tests/qtest/usb-hcd-xhci-test.c b/tests/qtest/usb-hcd-xhci-test.c
index 80bc039..0cccfd8 100644
--- a/tests/qtest/usb-hcd-xhci-test.c
+++ b/tests/qtest/usb-hcd-xhci-test.c
@@ -11,11 +11,6 @@
#include "libqtest-single.h"
#include "libqos/usb.h"
-
-static void test_xhci_init(void)
-{
-}
-
static void test_xhci_hotplug(void)
{
usb_test_hotplug(global_qtest, "xhci", "1", NULL);
@@ -54,7 +49,6 @@ int main(int argc, char **argv)
g_test_init(&argc, &argv, NULL);
- qtest_add_func("/xhci/pci/init", test_xhci_init);
qtest_add_func("/xhci/pci/hotplug", test_xhci_hotplug);
if (qtest_has_device("usb-uas")) {
qtest_add_func("/xhci/pci/hotplug/usb-uas", test_usb_uas_hotplug);