Kai Blin : dplayx: Set tests to "interactive" to avoid timing out on all machines.

Alexandre Julliard julliard at winehq.org
Tue Sep 30 11:16:14 CDT 2008


Module: wine
Branch: master
Commit: ab448df3efef1c892d830052b45f467a9911b827
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ab448df3efef1c892d830052b45f467a9911b827

Author: Kai Blin <kai.blin at gmail.com>
Date:   Sun Sep 28 18:54:54 2008 +0200

dplayx: Set tests to "interactive" to avoid timing out on all machines.

---

 dlls/dplayx/tests/dplayx.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/dlls/dplayx/tests/dplayx.c b/dlls/dplayx/tests/dplayx.c
index 345647a..7a0c657 100644
--- a/dlls/dplayx/tests/dplayx.c
+++ b/dlls/dplayx/tests/dplayx.c
@@ -6218,21 +6218,34 @@ static void test_remote_data_replication(void)
 
 START_TEST(dplayx)
 {
+    if (!winetest_interactive)
+    {
+        skip("Run in interacive mode to run dplayx tests.\n");
+        return;
+    }
+
     CoInitialize( NULL );
 
+    trace("Running in interactive mode, tests will take a while\n");
+
     test_DirectPlayCreate();
     test_EnumConnections();
     test_InitializeConnection();
 
     test_GetCaps();
+    /* test_Open() takes almost a minute, */
     test_Open();
+    /* test_EnumSession takes three minutes */
     test_EnumSessions();
     test_SessionDesc();
 
+    /* test_CreatePlayer() takes over a minute */
     test_CreatePlayer();
     test_GetPlayerCaps();
     test_PlayerData();
     test_PlayerName();
+
+    /* test_GetPlayerAccount() takes over 30s */
     test_GetPlayerAccount();
     test_GetPlayerAddress();
     test_GetPlayerFlags();




More information about the wine-cvs mailing list