Paul Vriens : kernel32/tests: Skip some not implemented functions and add a few skip's.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Aug 21 15:22:19 CDT 2007


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

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Tue Aug 21 14:22:03 2007 +0200

kernel32/tests: Skip some not implemented functions and add a few skip's.

---

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

diff --git a/dlls/kernel32/tests/change.c b/dlls/kernel32/tests/change.c
index 9b6c52b..3c5ace3 100644
--- a/dlls/kernel32/tests/change.c
+++ b/dlls/kernel32/tests/change.c
@@ -256,7 +256,13 @@ static void test_ffcn(void)
     static const WCHAR szBoo[] = { '\\','b','o','o',0 };
     static const WCHAR szHoo[] = { '\\','h','o','o',0 };
 
+    SetLastError(0xdeadbeef);
     r = GetTempPathW( MAX_PATH, path );
+    if (!r && (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED))
+    {
+        skip("GetTempPathW is not implemented\n");
+        return;
+    }
     ok( r != 0, "temp path failed\n");
     if (!r)
         return;
@@ -376,7 +382,10 @@ static void test_readdirectorychanges(void)
     PFILE_NOTIFY_INFORMATION pfni;
 
     if (!pReadDirectoryChangesW)
+    {
+        skip("ReadDirectoryChangesW is not available\n");
         return;
+    }
 
     r = GetTempPathW( MAX_PATH, path );
     ok( r != 0, "temp path failed\n");
@@ -587,7 +596,10 @@ static void test_readdirectorychanges_null(void)
     PFILE_NOTIFY_INFORMATION pfni;
 
     if (!pReadDirectoryChangesW)
+    {
+        skip("ReadDirectoryChangesW is not available\n");
         return;
+    }
 
     r = GetTempPathW( MAX_PATH, path );
     ok( r != 0, "temp path failed\n");
@@ -678,7 +690,13 @@ static void test_readdirectorychanges_filedir(void)
     static const WCHAR szFoo[] = { '\\','f','o','o',0 };
     PFILE_NOTIFY_INFORMATION pfni;
 
+    SetLastError(0xdeadbeef);
     r = GetTempPathW( MAX_PATH, path );
+    if (!r && (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED))
+    {
+        skip("GetTempPathW is not implemented\n");
+        return;
+    }
     ok( r != 0, "temp path failed\n");
     if (!r)
         return;




More information about the wine-cvs mailing list