mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[COMPILER_APITEST] Add new compiler_apitest, using pseh tests
This commit is contained in:
parent
69e80a1e74
commit
a713e63b8b
5 changed files with 26 additions and 29 deletions
|
@ -1,21 +1,12 @@
|
|||
|
||||
add_executable(pseh2_test psehtest.c psehtest2.c)
|
||||
target_link_libraries(pseh2_test wine ${PSEH_LIB})
|
||||
set_module_type(pseh2_test win32cui)
|
||||
add_importlibs(pseh2_test msvcrt kernel32 ntdll)
|
||||
add_rostests_file(TARGET pseh2_test)
|
||||
list(APPEND SOURCE
|
||||
pseh.c
|
||||
pseh_cpp.cpp
|
||||
psehtest2.c
|
||||
testlist.c)
|
||||
|
||||
if(NOT MSVC)
|
||||
target_compile_options(pseh2_test PRIVATE "-Wno-format")
|
||||
endif()
|
||||
|
||||
|
||||
add_executable(pseh2_test_cpp psehtest_cpp.cpp psehtest2.c)
|
||||
target_link_libraries(pseh2_test_cpp wine ${PSEH_LIB})
|
||||
set_module_type(pseh2_test_cpp win32cui)
|
||||
add_importlibs(pseh2_test_cpp msvcrt kernel32 ntdll)
|
||||
add_rostests_file(TARGET pseh2_test_cpp)
|
||||
|
||||
if(NOT MSVC)
|
||||
target_compile_options(pseh2_test_cpp PRIVATE "-Wno-format")
|
||||
endif()
|
||||
add_executable(compiler_apitest ${SOURCE})
|
||||
target_link_libraries(compiler_apitest wine ${PSEH_LIB})
|
||||
set_module_type(compiler_apitest win32cui)
|
||||
add_importlibs(compiler_apitest msvcrt kernel32 ntdll)
|
||||
add_rostests_file(TARGET compiler_apitest)
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define STANDALONE
|
||||
#include <wine/test.h>
|
||||
|
||||
extern void no_op(void);
|
||||
|
@ -2760,7 +2759,7 @@ struct subtest
|
|||
int (* func)(void);
|
||||
};
|
||||
|
||||
void testsuite_syntax(void)
|
||||
START_TEST(pseh)
|
||||
{
|
||||
const struct subtest testsuite[] =
|
||||
{
|
||||
|
@ -2893,9 +2892,4 @@ void testsuite_syntax(void)
|
|||
ok(call_test(testsuite[i].func), "%s failed\n", testsuite[i].name);
|
||||
}
|
||||
|
||||
const struct test winetest_testlist[] = {
|
||||
{ "pseh2_syntax", testsuite_syntax },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
/* EOF */
|
3
modules/rostests/apitests/compiler/pseh_cpp.cpp
Normal file
3
modules/rostests/apitests/compiler/pseh_cpp.cpp
Normal file
|
@ -0,0 +1,3 @@
|
|||
|
||||
#define func_pseh func_pseh_cpp
|
||||
#include "pseh.c"
|
|
@ -1,3 +0,0 @@
|
|||
|
||||
|
||||
#include "psehtest.c"
|
12
modules/rostests/apitests/compiler/testlist.c
Normal file
12
modules/rostests/apitests/compiler/testlist.c
Normal file
|
@ -0,0 +1,12 @@
|
|||
#define STANDALONE
|
||||
#include <apitest.h>
|
||||
|
||||
extern void func_pseh(void);
|
||||
extern void func_pseh_cpp(void);
|
||||
|
||||
const struct test winetest_testlist[] =
|
||||
{
|
||||
{ "pseh", func_pseh },
|
||||
{ "pseh_cpp", func_pseh_cpp },
|
||||
{ 0, 0 }
|
||||
};
|
Loading…
Reference in a new issue