mirror of
https://github.com/reactos/reactos.git
synced 2024-08-05 02:50:55 +00:00
![Hermès Bélusca-Maïto](/assets/img/avatar_default.png)
Introduce a "apitest.h" header gathering special things for apitests (SEH macros, wine/test.h inclusion, and so on...). svn path=/trunk/; revision=60313
29 lines
994 B
C
29 lines
994 B
C
#ifndef _APITEST_H
|
|
#define _APITEST_H
|
|
|
|
// #define __ROS_LONG64__
|
|
|
|
#define WIN32_NO_STATUS
|
|
|
|
/* The user must #define STANDALONE if it uses this header in testlist.c */
|
|
#include <wine/test.h>
|
|
#include <pseh/pseh2.h>
|
|
|
|
/* See kmtests/include/kmt_test.h */
|
|
#define InvalidPointer ((PVOID)0x5555555555555555ULL)
|
|
|
|
#define StartSeh() \
|
|
ExceptionStatus = STATUS_SUCCESS; \
|
|
_SEH2_TRY \
|
|
{
|
|
#define EndSeh(ExpectedStatus) \
|
|
} \
|
|
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) \
|
|
{ \
|
|
ExceptionStatus = _SEH2_GetExceptionCode(); \
|
|
} \
|
|
_SEH2_END; \
|
|
ok(ExceptionStatus == ExpectedStatus, "Exception 0x%08lx, expected 0x%08lx\n", ExceptionStatus, ExpectedStatus)
|
|
|
|
#endif /* _APITEST_H */
|