[RICHED20_WINETEST]
[reactos.git] / rostests / apitests / apitest.h
index 6900789..e3e08e0 100644 (file)
@@ -40,7 +40,7 @@ typedef struct tagTEST
                if (x)\
                {\
                        (pti->passed)++;\
-                       printf("non-rtest succeeded in %s:%d (%s)\n", __FILE__, __LINE__, #x);\
+                       printf("%s:%d: non-rtest succeeded (%s)\n", __FILE__, __LINE__, #x);\
                } else {\
                        (pti->failed)++;\
                } \
@@ -52,7 +52,30 @@ typedef struct tagTEST
                        (pti->passed)++;\
                } else {\
                        (pti->failed)++;\
-                       printf("test failed in %s:%d (%s)\n", __FILE__, __LINE__, #x);\
+                       printf("%s:%d: test failed (%s)\n", __FILE__, __LINE__, #x);\
+               } \
+       }
+
+#define TESTX(x, format, ...) \
+       if (pti->bRegress) \
+       { \
+               if (x)\
+               {\
+                       (pti->passed)++;\
+                       printf("%s:%d: non-rtest succeeded (%s)\n", __FILE__, __LINE__, #x);\
+               } else {\
+                       (pti->failed)++;\
+               } \
+       } \
+       else \
+       { \
+               if (x)\
+               {\
+                       (pti->passed)++;\
+               } else {\
+                       (pti->failed)++;\
+                       printf("%s:%d: test failed (%s) ", __FILE__, __LINE__, #x);\
+                       printf(format, __VA_ARGS__); \
                } \
        }
 
@@ -91,5 +114,6 @@ int TestMain(LPWSTR pszExe, LPWSTR pszModule);
 extern TESTENTRY TestList[];
 INT NumTests(void);
 BOOL IsFunctionPresent(LPWSTR lpszFunction);
+VOID DumpMem(PVOID pData, ULONG cbSize, ULONG nWidth);
 
 #endif /* _APITEST_H */