Paul Vriens : riched20/tests: Skip some tests on Win9x and WinMe.

Alexandre Julliard julliard at winehq.org
Fri Oct 24 08:12:46 CDT 2008


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Fri Oct 24 11:49:18 2008 +0200

riched20/tests: Skip some tests on Win9x and WinMe.

---

 dlls/riched20/tests/editor.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c
index 8946ed3..2c803ae 100644
--- a/dlls/riched20/tests/editor.c
+++ b/dlls/riched20/tests/editor.c
@@ -5658,9 +5658,15 @@ static void test_word_movement(void)
 
     /* Make sure the behaviour is the same with a unicode richedit window,
      * and using unicode functions. */
+    SetLastError(0xdeadbeef);
     hwnd = CreateWindowW(RICHEDIT_CLASS20W, NULL,
                         ES_MULTILINE|WS_POPUP|WS_HSCROLL|WS_VSCROLL|WS_VISIBLE,
                         0, 0, 200, 60, NULL, NULL, hmoduleRichEdit, NULL);
+    if (!hwnd && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
+    {
+        win_skip("Needed unicode functions are not implemented\n");
+        return;
+    }
 
     /* Test with a custom word break procedure that uses X as the delimiter. */
     result = SendMessageW(hwnd, WM_SETTEXT, 0, (LPARAM)textW);




More information about the wine-cvs mailing list