James Hawkins : setupapi: Fix a test that is failing in multiple platforms.

Alexandre Julliard julliard at winehq.org
Tue Jul 1 08:27:48 CDT 2008


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

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Tue Jul  1 00:39:33 2008 -0500

setupapi: Fix a test that is failing in multiple platforms.

---

 dlls/setupapi/tests/query.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/dlls/setupapi/tests/query.c b/dlls/setupapi/tests/query.c
index 87f1673..5283bf0 100644
--- a/dlls/setupapi/tests/query.c
+++ b/dlls/setupapi/tests/query.c
@@ -149,7 +149,11 @@ static void test_SetupGetInfInformation(void)
     SetLastError(0xbeefcafe);
     ret = SetupGetInfInformationA(NULL, INFINFO_INF_SPEC_IS_HINF, NULL, 0, &size);
     ok(ret == FALSE, "Expected SetupGetInfInformation to fail\n");
-    ok(GetLastError() == ERROR_INVALID_HANDLE,
+    ok(GetLastError() == ERROR_INVALID_HANDLE ||
+       broken(GetLastError() == ERROR_BAD_PATHNAME) || /* win95 */
+       broken(GetLastError() == ERROR_FILE_NOT_FOUND) || /* win98 */
+       broken(GetLastError() == ERROR_PATH_NOT_FOUND) || /* NT4 */
+       broken(GetLastError() == ERROR_INVALID_NAME), /* win2k */
        "Expected ERROR_INVALID_HANDLE, got %d\n", GetLastError());
     ok(size == 0xdeadbeef, "Expected size to remain unchanged\n");
 




More information about the wine-cvs mailing list