[2/7] msvcrt/tests: Properly skip if functions are not available.

Alexander Scott-Johns alexander.scott.johns at googlemail.com
Sun Jun 6 11:55:20 CDT 2010


-------------- next part --------------
From a86bef54bbf30aa715398d60b041e09b50be95ab Mon Sep 17 00:00:00 2001
From: Alexander Scott-Johns <alexander.scott.johns at googlemail.com>
Date: Sun, 6 Jun 2010 15:27:47 +0100
Subject: msvcrt/tests: Properly skip if functions are not available.

---
 dlls/msvcrt/tests/printf.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/dlls/msvcrt/tests/printf.c b/dlls/msvcrt/tests/printf.c
index cea4db3..eaf248b 100644
--- a/dlls/msvcrt/tests/printf.c
+++ b/dlls/msvcrt/tests/printf.c
@@ -864,6 +864,13 @@ START_TEST(printf)
     p__vscprintf = (void *)GetProcAddress(GetModuleHandle("msvcrt.dll"), "_vscprintf");
     p__vscwprintf = (void *)GetProcAddress(GetModuleHandle("msvcrt.dll"), "_vscwprintf");
 
-    if (p__vscprintf) test_vscprintf();
-    if (p__vscwprintf) test_vscwprintf();
+    if (p__vscprintf)
+        test_vscprintf();
+    else
+        win_skip("_vscprintf not available\n");
+
+    if (p__vscwprintf)
+        test_vscwprintf();
+    else
+        win_skip("_vscwprintf not available\n");
 }
-- 
1.6.0.4


More information about the wine-patches mailing list