[COMPILER_APITEST] Add new compiler_apitest, using pseh tests

This commit is contained in:
Timo Kreuzer 2020-03-10 01:27:59 +01:00
parent 69e80a1e74
commit a713e63b8b
5 changed files with 26 additions and 29 deletions

View file

@ -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)

View file

@ -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 */

View file

@ -0,0 +1,3 @@
#define func_pseh func_pseh_cpp
#include "pseh.c"

View file

@ -1,3 +0,0 @@
#include "psehtest.c"

View 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 }
};