Andrew Nguyen : shlwapi/tests: Skip StrRStrI tests on older Win9x platforms .
Alexandre Julliard
julliard at winehq.org
Tue Jul 20 11:20:34 CDT 2010
Module: wine
Branch: master
Commit: fd9b8c4ac57148a2af7fbfdf88cc03ccd5399fb8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fd9b8c4ac57148a2af7fbfdf88cc03ccd5399fb8
Author: Andrew Nguyen <anguyen at codeweavers.com>
Date: Mon Jul 19 23:14:30 2010 -0500
shlwapi/tests: Skip StrRStrI tests on older Win9x platforms.
---
dlls/shlwapi/tests/string.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/dlls/shlwapi/tests/string.c b/dlls/shlwapi/tests/string.c
index 8daf87d..ec695b5 100644
--- a/dlls/shlwapi/tests/string.c
+++ b/dlls/shlwapi/tests/string.c
@@ -785,7 +785,16 @@ static void test_StrRStrI(void)
static const WCHAR wszPattern4[] = {'a','b',0};
LPWSTR retW;
LPSTR retA;
-
+
+ /* StrCpyNXA was chosen simply because it doesn't appear to be available on
+ * Win9x machines where StrRStrI crashes. Despite StrRStrI being exported
+ * by name, all StrRStrI tests appear to crash for unknown reasons. */
+ if (!pStrCpyNXA)
+ {
+ win_skip("StrRStrI crashes on older Win9x platforms\n");
+ return;
+ }
+
check_strrstri(A, szTest, 4, "A", szTest+1);
check_strrstri(A, szTest, 4, "aX", szTest+1);
check_strrstri(A, szTest, 4, "Ay", NULL);
More information about the wine-cvs
mailing list