Paul Vriens : shlwapi/tests: Skip some tests on Win9x/WinMe.

Alexandre Julliard julliard at winehq.org
Fri Mar 5 09:42:55 CST 2010


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Fri Mar  5 11:35:12 2010 +0100

shlwapi/tests: Skip some tests on Win9x/WinMe.

---

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

diff --git a/dlls/shlwapi/tests/ordinal.c b/dlls/shlwapi/tests/ordinal.c
index dd046aa..17201b5 100644
--- a/dlls/shlwapi/tests/ordinal.c
+++ b/dlls/shlwapi/tests/ordinal.c
@@ -1688,7 +1688,13 @@ if (0)
     flags = FDTF_SHORTTIME;
     ret = pSHFormatDateTimeW(&filetime, &flags, buff, sizeof(buff)/sizeof(WCHAR));
     ok(ret == lstrlenW(buff)+1, "got %d\n", ret);
+    SetLastError(0xdeadbeef);
     ret = GetTimeFormatW(LOCALE_USER_DEFAULT, TIME_NOSECONDS, &st, NULL, buff2, sizeof(buff2)/sizeof(WCHAR));
+    if (ret == 0 && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
+    {
+        win_skip("Needed W-functions are not implemented\n");
+        return;
+    }
     ok(ret == lstrlenW(buff2)+1, "got %d\n", ret);
     ok(lstrcmpW(buff, buff2) == 0, "expected equal strings\n");
 




More information about the wine-cvs mailing list