mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 19:43:33 +00:00
[UCRTBASE_APITEST] Add ucrtbase_apitest
First test is ceil.
This commit is contained in:
parent
b401f547ae
commit
43546cb5c2
4 changed files with 47 additions and 0 deletions
|
@ -55,6 +55,7 @@ add_subdirectory(shell32)
|
|||
add_subdirectory(shlwapi)
|
||||
add_subdirectory(spoolss)
|
||||
add_subdirectory(psapi)
|
||||
add_subdirectory(ucrtbase)
|
||||
add_subdirectory(umkm)
|
||||
add_subdirectory(user32)
|
||||
add_subdirectory(user32_dynamic)
|
||||
|
|
|
@ -59,6 +59,7 @@ void Test_ceil(void)
|
|||
}
|
||||
}
|
||||
|
||||
#ifndef _M_IX86
|
||||
static TESTENTRY_FLT s_ceilf_tests[] =
|
||||
{
|
||||
/* Special values */
|
||||
|
@ -101,9 +102,12 @@ void Test_ceilf(void)
|
|||
ok_eq_flt_exact("ceilf", s_ceilf_tests[i].x, z, s_ceilf_tests[i].result);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
START_TEST(ceil)
|
||||
{
|
||||
Test_ceil();
|
||||
#ifndef _M_IX86
|
||||
Test_ceilf();
|
||||
#endif
|
||||
}
|
||||
|
|
28
modules/rostests/apitests/ucrtbase/CMakeLists.txt
Normal file
28
modules/rostests/apitests/ucrtbase/CMakeLists.txt
Normal file
|
@ -0,0 +1,28 @@
|
|||
|
||||
# Hack to replace the old CRT include directory with the UCRT include directory
|
||||
get_property(INCLUDE_DIRS DIRECTORY . PROPERTY INCLUDE_DIRECTORIES)
|
||||
list(REMOVE_ITEM INCLUDE_DIRS "${REACTOS_SOURCE_DIR}/sdk/include/crt")
|
||||
set_property(DIRECTORY . PROPERTY INCLUDE_DIRECTORIES ${INCLUDE_DIRS})
|
||||
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/ucrt)
|
||||
|
||||
add_definitions(
|
||||
-DTEST_UCRTBASE
|
||||
-DUSE_WINE_TODOS
|
||||
)
|
||||
|
||||
list(APPEND SOURCE
|
||||
../crt/ceil.c
|
||||
testlist.c
|
||||
)
|
||||
|
||||
add_executable(ucrtbase_apitest ${SOURCE})
|
||||
set_module_type(ucrtbase_apitest win32cui)
|
||||
|
||||
target_link_libraries(ucrtbase_apitest ${PSEH_LIB} chkstk)
|
||||
if(NOT MSVC)
|
||||
# Add this manually here, so it can link to ucrtbase.dll and vcstartup
|
||||
target_link_libraries(ucrtbase_apitest -lgcc)
|
||||
endif()
|
||||
|
||||
add_importlibs(ucrtbase_apitest ucrtbase kernel32 ntdll)
|
||||
add_rostests_file(TARGET ucrtbase_apitest)
|
14
modules/rostests/apitests/ucrtbase/testlist.c
Normal file
14
modules/rostests/apitests/ucrtbase/testlist.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
/* Automatically generated file; DO NOT EDIT!! */
|
||||
|
||||
#define STANDALONE
|
||||
#include <wine/test.h>
|
||||
|
||||
extern void func_ceil(void);
|
||||
|
||||
|
||||
const struct test winetest_testlist[] =
|
||||
{
|
||||
{ "ceil", func_ceil },
|
||||
|
||||
{ 0, 0 }
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue