Alexander Scott-Johns : msvcrt/tests: Properly skip if functions are not available.
Alexandre Julliard
julliard at winehq.org
Mon Jun 7 10:02:26 CDT 2010
Module: wine
Branch: master
Commit: b205fd8108eca2fd29705875e53ed852f56a6b6d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b205fd8108eca2fd29705875e53ed852f56a6b6d
Author: Alexander Scott-Johns <alexander.scott.johns at googlemail.com>
Date: Sun Jun 6 15:27:47 2010 +0100
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");
}
More information about the wine-cvs
mailing list