Austin English : advpack: Fix a test failure on 9x.

Alexandre Julliard julliard at winehq.org
Wed Jun 4 06:35:37 CDT 2008


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

Author: Austin English <austinenglish at gmail.com>
Date:   Fri May 30 15:10:52 2008 -0500

advpack: Fix a test failure on 9x.

---

 dlls/advpack/tests/advpack.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/advpack/tests/advpack.c b/dlls/advpack/tests/advpack.c
index e761577..0b668a7 100644
--- a/dlls/advpack/tests/advpack.c
+++ b/dlls/advpack/tests/advpack.c
@@ -331,8 +331,9 @@ static void translateinfstringex_test(void)
 
     /* try an empty filename */
     hr = pOpenINFEngine("", "Options.NTx86", 0, &hinf, NULL);
-    ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND),
-        "Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), got %08x\n", hr);
+    ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) /* NT+ */ ||
+       hr == HRESULT_FROM_WIN32(E_UNEXPECTED) /* 9x */,
+        "Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND or E_UNEXPECTED), got %08x\n", hr);
 
     /* try a NULL hinf */
     hr = pOpenINFEngine(inf_file, "Options.NTx86", 0, NULL, NULL);




More information about the wine-cvs mailing list