[NTDLL_APITEST] Add tests for RtlpEnsureBufferSize. CORE-11990
[reactos.git] / rostests / apitests / ntdll / CMakeLists.txt
1
2 list(APPEND SOURCE
3 LdrEnumResources.c
4 NtAllocateVirtualMemory.c
5 NtApphelpCacheControl.c
6 NtContinue.c
7 NtCreateFile.c
8 NtCreateKey.c
9 NtCreateThread.c
10 NtDeleteKey.c
11 NtFreeVirtualMemory.c
12 NtMapViewOfSection.c
13 NtMutant.c
14 NtOpenProcessToken.c
15 NtOpenThreadToken.c
16 NtProtectVirtualMemory.c
17 NtQueryInformationProcess.c
18 NtQueryKey.c
19 NtQuerySystemEnvironmentValue.c
20 NtQueryVolumeInformationFile.c
21 NtReadFile.c
22 NtSaveKey.c
23 NtSetValueKey.c
24 NtWriteFile.c
25 RtlAllocateHeap.c
26 RtlBitmap.c
27 RtlCopyMappedMemory.c
28 RtlDeleteAce.c
29 RtlDetermineDosPathNameType.c
30 RtlDoesFileExists.c
31 RtlDosApplyFileIsolationRedirection_Ustr.c
32 RtlDosPathNameToNtPathName_U.c
33 RtlDosSearchPath_U.c
34 RtlDosSearchPath_Ustr.c
35 RtlFirstFreeAce.c
36 RtlGenerate8dot3Name.c
37 RtlGetFullPathName_U.c
38 RtlGetFullPathName_Ustr.c
39 RtlGetFullPathName_UstrEx.c
40 RtlGetLengthWithoutTrailingPathSeperators.c
41 RtlGetLongestNtPathLength.c
42 RtlImageRvaToVa.c
43 RtlInitializeBitMap.c
44 RtlIsNameLegalDOS8Dot3.c
45 RtlMemoryStream.c
46 RtlpEnsureBufferSize.c
47 RtlReAllocateHeap.c
48 RtlUpcaseUnicodeStringToCountedOemString.c
49 StackOverflow.c
50 SystemInfo.c
51 Timer.c
52 testlist.c)
53
54 if(ARCH STREQUAL "i386")
55 add_asm_files(ntdll_apitest_asm i386/NtContinue.S)
56 endif()
57
58 add_executable(ntdll_apitest ${SOURCE} ${ntdll_apitest_asm})
59 target_link_libraries(ntdll_apitest wine uuid ${PSEH_LIB})
60 set_module_type(ntdll_apitest win32cui)
61 add_importlibs(ntdll_apitest msvcrt advapi32 kernel32 ntdll)
62
63 if(NOT MSVC)
64 set_source_files_properties(RtlGetFullPathName_UstrEx.c PROPERTIES COMPILE_FLAGS "-Wno-format")
65 endif()
66
67 add_rostests_file(TARGET ntdll_apitest)
68 add_rostests_file(TARGET ntdll_apitest SUBDIR testdata)
69 # These are empty files
70 add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/ntdll_apitest.exe.local" SUBDIR testdata)
71 add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/shell32.dll" SUBDIR testdata)
72 add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/test.dll" SUBDIR testdata)