Jacek Caban : vbscript/tests: Fix tests on some Vista versions.

Alexandre Julliard julliard at winehq.org
Thu Aug 22 15:09:54 CDT 2019


Module: wine
Branch: master
Commit: 139b0ef3fd4147b82a2f86762ebd5f446bb08f21
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=139b0ef3fd4147b82a2f86762ebd5f446bb08f21

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Aug 22 19:31:25 2019 +0200

vbscript/tests: Fix tests on some Vista versions.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/vbscript/tests/api.vbs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/vbscript/tests/api.vbs b/dlls/vbscript/tests/api.vbs
index 93cf7f8..0548c7b 100644
--- a/dlls/vbscript/tests/api.vbs
+++ b/dlls/vbscript/tests/api.vbs
@@ -1480,8 +1480,8 @@ sub testAscError()
     call Asc()
     Call ok(Err.number = 450, "Err.number = " & Err.number)
     call Err.clear()
-    call Asc(Chr(260))
-    Call ok(Err.number = 5, "Err.number = " & Err.number)
+    call Asc(Chr(260)) ' some versions of vista allow it
+    Call ok(Err.number = 5 or Err.number = 0, "asc4 Err.number = " & Err.number)
     call Err.clear()
     call Asc("")
     Call ok(Err.number = 5, "Err.number = " & Err.number)




More information about the wine-cvs mailing list