Andrew Nguyen : kernel32/tests: Correctly skip when GetTempPathW is not available.

Alexandre Julliard julliard at winehq.org
Mon May 18 08:13:18 CDT 2009


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

Author: Andrew Nguyen <arethusa26 at gmail.com>
Date:   Mon May 18 04:24:42 2009 -0500

kernel32/tests: Correctly skip when GetTempPathW is not available.

---

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

diff --git a/dlls/kernel32/tests/path.c b/dlls/kernel32/tests/path.c
index 20ee453..de26fc9 100644
--- a/dlls/kernel32/tests/path.c
+++ b/dlls/kernel32/tests/path.c
@@ -878,8 +878,11 @@ static void test_GetTempPathW(char* tmp_dir)
 
     lstrcpyW(buf, fooW);
     len = GetTempPathW(MAX_PATH, buf);
-    if (len==0 && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED)
+    if (len == 0 && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
+    {
+        win_skip("GetTempPathW is not available\n");
         return;
+    }
     ok(lstrcmpiW(buf, tmp_dirW) == 0, "GetTempPathW returned an incorrect temporary path\n");
     ok(len == lstrlenW(buf), "returned length should be equal to the length of string\n");
 




More information about the wine-cvs mailing list