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

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


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

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

ntdll/tests: Show that we are skipping tests.

---

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

diff --git a/dlls/ntdll/tests/env.c b/dlls/ntdll/tests/env.c
index aab9368..92f654e 100644
--- a/dlls/ntdll/tests/env.c
+++ b/dlls/ntdll/tests/env.c
@@ -275,6 +275,11 @@ static void testExpand(void)
 START_TEST(env)
 {
     HMODULE mod = GetModuleHandleA("ntdll.dll");
+    if (!mod)
+    {
+        win_skip("Not running on NT, skipping tests\n");
+        return;
+    }
 
     pRtlMultiByteToUnicodeN = (void *)GetProcAddress(mod,"RtlMultiByteToUnicodeN");
     pRtlCreateEnvironment = (void*)GetProcAddress(mod, "RtlCreateEnvironment");




More information about the wine-cvs mailing list