[tests] disable sysparams tests if we run non-interactively

Dimitrie O. Paun dpaun at rogers.com
Fri Jun 4 00:17:37 CDT 2004


ChangeLog
    Win 2000, XP, etc. fail the sysparams tests when run 
    non-interactively, so avoid running the tests in that case.


Index: dlls/user/tests/sysparams.c
===================================================================
RCS file: /var/cvs/wine/dlls/user/tests/sysparams.c,v
retrieving revision 1.21
diff -u -r1.21 sysparams.c
--- dlls/user/tests/sysparams.c	19 Mar 2004 01:16:12 -0000	1.21
+++ dlls/user/tests/sysparams.c	4 Jun 2004 01:42:49 -0000
@@ -1312,6 +1312,10 @@
     DWORD dwThreadId;
     HANDLE hInstance = GetModuleHandleA( NULL );
 
+    /* This test requires interactivity, if we don't have it, give up */
+    if (!SystemParametersInfoA( SPI_SETBEEP, TRUE, 0, SPIF_UPDATEINIFILE | SPIF_SENDCHANGE ) &&
+        GetLastError()==ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION) return;
+
     argc = winetest_get_mainargs(&argv);
     strict=(argc >= 3 && strcmp(argv[2],"strict")==0);
     trace("strict=%d\n",strict);



More information about the wine-patches mailing list