12 #define APISTATUS_NORMAL 0
13 #define APISTATUS_NOT_FOUND 1
14 #define APISTATUS_UNIMPLEMENTED 2
15 #define APISTATUS_ASSERTION_FAILED 3
16 #define APISTATUS_REGRESSION 4
18 /* type definitions */
20 typedef struct tagTESTINFO
27 } TESTINFO
, *PTESTINFO
;
29 typedef INT (*TESTPROC
)(PTESTINFO
);
31 typedef struct tagTEST
35 } TESTENTRY
, *PTESTENTRY
;
46 printf("non-rtest succeeded in %s:%d (%s)\n", __FILE__, __LINE__, #x);\
58 printf("test failed in %s:%d (%s)\n", __FILE__, __LINE__, #x);\
71 printf("rtest failed in %s:%d (%s)\n", __FILE__, __LINE__, #x);\
81 printf("test failed in %s:%d (%s)\n", __FILE__, __LINE__, #x);\
89 printf("Assertion failed in %s:%d (%s)\n", __FILE__, __LINE__, #x);\
90 return APISTATUS_ASSERTION_FAILED; \
93 int TestMain(LPWSTR pszExe
, LPWSTR pszModule
);
94 extern TESTENTRY TestList
[];
96 BOOL
IsFunctionPresent(LPWSTR lpszFunction
);
98 #endif /* _APITEST_H */