qtest: ensure netdev-socket tests have non-overlapping names
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 4 Jan 2024 16:29:42 +0000 (16:29 +0000)
committerThomas Huth <thuth@redhat.com>
Thu, 11 Jan 2024 10:39:26 +0000 (11:39 +0100)
When naming glib tests if the name of one test is a substring of the
name of another test, it is not possible to use the '-p /the/name'
option to run a single test.

Signed-off-by: "Daniel P. Berrangé" <berrange@redhat.com>
Message-ID: <20240104162942.211458-7-berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/netdev-socket.c

index 91441f79220e525eb1455b4671828097b181e25e..fc7d11961eaa1659ffae58d5058ba123fc13cda9 100644 (file)
@@ -526,7 +526,7 @@ int main(int argc, char **argv)
 #ifndef _WIN32
         qtest_add_func("/netdev/dgram/unix", test_dgram_unix);
 #endif
-        qtest_add_func("/netdev/stream/unix", test_stream_unix);
+        qtest_add_func("/netdev/stream/unix/oneshot", test_stream_unix);
         qtest_add_func("/netdev/stream/unix/reconnect",
                        test_stream_unix_reconnect);
 #ifdef CONFIG_LINUX