From 6d53c65048dea73a4ab9acf9037e436605d1c8e7 Mon Sep 17 00:00:00 2001 From: "Dimitrie O. Paun" Date: Fri, 4 Jun 2004 19:36:43 +0000 Subject: [PATCH] Win 2000, XP, etc. fail the sysparams tests when run non-interactively, so avoid running the tests in that case. --- dlls/user/tests/sysparams.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/user/tests/sysparams.c b/dlls/user/tests/sysparams.c index 190fec695bd..5996417c144 100644 --- a/dlls/user/tests/sysparams.c +++ b/dlls/user/tests/sysparams.c @@ -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);