ReactOS
0.4.15-dev-2361-g32428a3
apitest.h
Go to the documentation of this file.
1
#ifndef _APITEST_H
2
#define _APITEST_H
3
4
// #define __ROS_LONG64__
5
6
/* The user must #define STANDALONE if it uses this header in testlist.c */
7
#define WIN32_NO_STATUS
8
#include <
wine/test.h
>
9
#undef WIN32_NO_STATUS
10
11
#include <
pseh/pseh2.h
>
12
13
/* See kmtests/include/kmt_test.h */
14
#define InvalidPointer ((PVOID)0x5555555555555555ULL)
15
// #define InvalidPointer ((PVOID)0x0123456789ABCDEFULL)
16
17
#define StartSeh() \
18
{ \
19
NTSTATUS ExceptionStatus = STATUS_SUCCESS; \
20
_SEH2_TRY \
21
{
22
23
#define EndSeh(ExpectedStatus) \
24
} \
25
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) \
26
{ \
27
ExceptionStatus = _SEH2_GetExceptionCode(); \
28
} \
29
_SEH2_END; \
30
ok(ExceptionStatus == (ExpectedStatus), \
31
"Exception 0x%08lx, expected 0x%08lx\n", \
32
ExceptionStatus, (ExpectedStatus)); \
33
}
34
35
#define ok_hr(status, expected) ok_hex(status, expected)
36
#define ok_hr_(file, line, status, expected) ok_hex_(file, line, status, expected)
37
38
#endif
/* _APITEST_H */
pseh2.h
test.h
modules
rostests
apitests
include
apitest.h
Generated on Wed Apr 21 2021 06:06:25 for ReactOS by
1.8.15