9 Some macros, structs, and vars are based or inspired from the great
10 Wine regression tests Copyright (C) 2002 Alexandre Julliard.
11 Everything else is done by Aleksey Bragin based on PnPTest by Filip Navara
14 extern LONG successes
; /* number of successful tests */
15 extern LONG failures
; /* number of failures */
16 //static ULONG todo_successes; /* number of successful tests inside todo block */
17 //static ULONG todo_failures; /* number of failures inside todo block */
19 // We don't do multithreading, so we just keep this struct in a global var
22 const char* current_file
; /* file of current check */
23 int current_line
; /* line of current check */
24 int todo_level
; /* current todo nesting level */
28 extern tls_data glob_data
;
31 VOID
FinishTest(LPSTR TestName
);
32 void kmtest_set_location(const char* file
, int line
);
36 extern int kmtest_ok( int condition
, const char *msg
, ... ) __attribute__((format (printf
,2,3) ));
40 extern int kmtest_ok( int condition
, const char *msg
, ... );
45 #define ok_(file, line) (kmtest_set_location(file, line), 0) ? 0 : kmtest_ok
46 #define ok ok_(__FILE__, __LINE__)
48 #endif /* PNPTEST_H */