Paul Vriens : kernel32/tests: Skip some tests on Win98/WinMe.

Alexandre Julliard julliard at winehq.org
Fri Dec 4 09:11:31 CST 2009


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Fri Dec  4 13:10:15 2009 +0100

kernel32/tests: Skip some tests on Win98/WinMe.

---

 dlls/kernel32/tests/path.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/dlls/kernel32/tests/path.c b/dlls/kernel32/tests/path.c
index c8ab0a8..02348c2 100644
--- a/dlls/kernel32/tests/path.c
+++ b/dlls/kernel32/tests/path.c
@@ -986,7 +986,14 @@ static void test_GetLongPathNameA(void)
     lstrcatA(temppath2, tempfile);
     explength = length + 4;
 
+    SetLastError(0xdeadbeef);
     length = pGetLongPathNameA(temppath2, NULL, 0);
+    if (length == 0 && GetLastError() == ERROR_BAD_NET_NAME)
+    {
+        win_skip("UNC syntax tests don't work on Win98/WinMe\n");
+        DeleteFileA(tempfile);
+        return;
+    }
     ok(length == explength, "Wrong length %d, expected %d\n", length, explength);
 
     length = pGetLongPathNameA(temppath2, NULL, MAX_PATH);




More information about the wine-cvs mailing list