Skip to content

Commit

Permalink
[INTEROP_UNITTEST] Move to unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
binarymaster committed Jul 31, 2024
1 parent cfcab9f commit 67315fc
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 16 deletions.
1 change: 1 addition & 0 deletions modules/rostests/unittests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
add_subdirectory(interop)
add_subdirectory(setuplib)
16 changes: 16 additions & 0 deletions modules/rostests/unittests/interop/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

PROJECT(interop_unittest)

include_directories(../../apitests/include)

list(APPEND SOURCE
LocaleTests.cpp
testlist.c)

add_executable(interop_unittest ${SOURCE})

target_link_libraries(interop_unittest cppstl)
set_module_type(interop_unittest win32cui)
target_compile_definitions(interop_unittest PRIVATE UNICODE _UNICODE _STLP_NO_EXCEPTIONS)
add_importlibs(interop_unittest shell32 user32 msvcrt kernel32)
add_rostests_file(TARGET interop_unittest)
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ static void TEST_LocaleTests(void)
#define ADD_LIB(eModule, pszPath) lib.insert(std::make_pair(eModule, pszPath));

GetModuleFileNameW(NULL, szBuffer, _countof(szBuffer));
LPCWSTR pszFind = StrStrW(szBuffer, L"modules\\rostests\\win32");
LPCWSTR pszFind = StrStrW(szBuffer, L"modules\\rostests\\unittests");
if (pszFind)
{
// We're running in ReactOS output folder
Expand Down
1 change: 0 additions & 1 deletion modules/rostests/win32/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
add_subdirectory(advapi32)
add_subdirectory(cmd)
add_subdirectory(comctl32)
add_subdirectory(interop_test)
add_subdirectory(kernel32)
add_subdirectory(user32)
14 changes: 0 additions & 14 deletions modules/rostests/win32/interop_test/CMakeLists.txt

This file was deleted.

0 comments on commit 67315fc

Please sign in to comment.