Paul Vriens : ntdll/tests: Show that we are skipping tests.

Alexandre Julliard julliard at winehq.org
Mon Sep 22 07:04:46 CDT 2008


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Sun Sep 21 20:21:58 2008 +0200

ntdll/tests: Show that we are skipping tests.

---

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

diff --git a/dlls/ntdll/tests/path.c b/dlls/ntdll/tests/path.c
index bf1271a..e1b1767 100644
--- a/dlls/ntdll/tests/path.c
+++ b/dlls/ntdll/tests/path.c
@@ -314,6 +314,12 @@ static void test_RtlGetFullPathName_U(void)
 START_TEST(path)
 {
     HMODULE mod = GetModuleHandleA("ntdll.dll");
+    if (!mod)
+    {
+        win_skip("Not running on NT, skipping tests\n");
+        return;
+    }
+
     pRtlMultiByteToUnicodeN = (void *)GetProcAddress(mod,"RtlMultiByteToUnicodeN");
     pRtlUnicodeToMultiByteN = (void *)GetProcAddress(mod,"RtlUnicodeToMultiByteN");
     pRtlDetermineDosPathNameType_U = (void *)GetProcAddress(mod,"RtlDetermineDosPathNameType_U");




More information about the wine-cvs mailing list