Reactos

[UCRTBASE_APITEST] Add ucrtbase_apitest

First test is ceil.

+47
+1
modules/rostests/apitests/CMakeLists.txt
··· 55 55 add_subdirectory(shlwapi) 56 56 add_subdirectory(spoolss) 57 57 add_subdirectory(psapi) 58 + add_subdirectory(ucrtbase) 58 59 add_subdirectory(umkm) 59 60 add_subdirectory(user32) 60 61 add_subdirectory(user32_dynamic)
+4
modules/rostests/apitests/crt/ceil.c
··· 59 59 } 60 60 } 61 61 62 + #ifndef _M_IX86 62 63 static TESTENTRY_FLT s_ceilf_tests[] = 63 64 { 64 65 /* Special values */ ··· 101 102 ok_eq_flt_exact("ceilf", s_ceilf_tests[i].x, z, s_ceilf_tests[i].result); 102 103 } 103 104 } 105 + #endif 104 106 105 107 START_TEST(ceil) 106 108 { 107 109 Test_ceil(); 110 + #ifndef _M_IX86 108 111 Test_ceilf(); 112 + #endif 109 113 }
+28
modules/rostests/apitests/ucrtbase/CMakeLists.txt
··· 1 + 2 + # Hack to replace the old CRT include directory with the UCRT include directory 3 + get_property(INCLUDE_DIRS DIRECTORY . PROPERTY INCLUDE_DIRECTORIES) 4 + list(REMOVE_ITEM INCLUDE_DIRS "${REACTOS_SOURCE_DIR}/sdk/include/crt") 5 + set_property(DIRECTORY . PROPERTY INCLUDE_DIRECTORIES ${INCLUDE_DIRS}) 6 + include_directories(${REACTOS_SOURCE_DIR}/sdk/include/ucrt) 7 + 8 + add_definitions( 9 + -DTEST_UCRTBASE 10 + -DUSE_WINE_TODOS 11 + ) 12 + 13 + list(APPEND SOURCE 14 + ../crt/ceil.c 15 + testlist.c 16 + ) 17 + 18 + add_executable(ucrtbase_apitest ${SOURCE}) 19 + set_module_type(ucrtbase_apitest win32cui) 20 + 21 + target_link_libraries(ucrtbase_apitest ${PSEH_LIB} chkstk) 22 + if(NOT MSVC) 23 + # Add this manually here, so it can link to ucrtbase.dll and vcstartup 24 + target_link_libraries(ucrtbase_apitest -lgcc) 25 + endif() 26 + 27 + add_importlibs(ucrtbase_apitest ucrtbase kernel32 ntdll) 28 + add_rostests_file(TARGET ucrtbase_apitest)
+14
modules/rostests/apitests/ucrtbase/testlist.c
··· 1 + /* Automatically generated file; DO NOT EDIT!! */ 2 + 3 + #define STANDALONE 4 + #include <wine/test.h> 5 + 6 + extern void func_ceil(void); 7 + 8 + 9 + const struct test winetest_testlist[] = 10 + { 11 + { "ceil", func_ceil }, 12 + 13 + { 0, 0 } 14 + };