From 812f72410f91132d7f4f6fd2db45b7e3c7bec0c8 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Thu, 29 May 2008 18:30:04 +0200 Subject: [PATCH] tests: Add a broken() function to make it possible to handle Windows misbehaviors that we don't want to reproduce in Wine. --- include/wine/test.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/wine/test.h b/include/wine/test.h index 1c91077d13a..f99b61774d9 100644 --- a/include/wine/test.h +++ b/include/wine/test.h @@ -68,6 +68,8 @@ extern void winetest_wait_child_process( HANDLE process ); #define START_TEST(name) void func_##name(void) #endif +extern int broken( int condition ); + #ifdef __GNUC__ extern int winetest_ok( int condition, const char *msg, ... ) __attribute__((format (printf,2,3) )); @@ -224,6 +226,11 @@ void winetest_set_location( const char* file, int line ) data->current_line=line; } +int broken( int condition ) +{ + return (strcmp(winetest_platform, "windows") == 0) && condition; +} + /* * Checks condition. * Parameters: -- 2.11.4.GIT