Win 2000, XP, etc. fail the sysparams tests when run

non-interactively, so avoid running the tests in that case.
This commit is contained in:
Dimitrie O. Paun 2004-06-04 19:36:43 +00:00 committed by Alexandre Julliard
parent 438bf11a7d
commit 6d53c65048
1 changed files with 4 additions and 0 deletions

View File

@ -1312,6 +1312,10 @@ START_TEST(sysparams)
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);