]> Git Repo - qemu.git/commitdiff
tests: classify some ivshmem tests as slow
authorMarc-André Lureau <[email protected]>
Thu, 12 Nov 2015 11:10:18 +0000 (12:10 +0100)
committerPeter Maydell <[email protected]>
Thu, 12 Nov 2015 11:57:58 +0000 (11:57 +0000)
Some tests may take long to run, move them under g_test_slow()
condition.

The 5s timeout for the "server" test will have to be adjusted to the worst
known time (for the records, it takes ~0.2s on my host). The "pair"
test takes ~1.7, a quickest version could be implemented.

Signed-off-by: Marc-André Lureau <[email protected]>
Message-id: 1447326618[email protected]
Signed-off-by: Peter Maydell <[email protected]>
tests/ivshmem-test.c

index c8f0cf0f70d11e3d1a665667c37defb7fd5cfac8..f1793ba6fb72bc90b9d2af17031cd6bae88da4ad 100644 (file)
@@ -478,10 +478,12 @@ int main(int argc, char **argv)
     tmpserver = g_strconcat(tmpdir, "/server", NULL);
 
     qtest_add_func("/ivshmem/single", test_ivshmem_single);
-    qtest_add_func("/ivshmem/pair", test_ivshmem_pair);
-    qtest_add_func("/ivshmem/server", test_ivshmem_server);
     qtest_add_func("/ivshmem/hotplug", test_ivshmem_hotplug);
     qtest_add_func("/ivshmem/memdev", test_ivshmem_memdev);
+    if (g_test_slow()) {
+        qtest_add_func("/ivshmem/pair", test_ivshmem_pair);
+        qtest_add_func("/ivshmem/server", test_ivshmem_server);
+    }
 
     ret = g_test_run();
 
This page took 0.027256 seconds and 4 git commands to generate.