Skip to content

Commit

Permalink
namedirectory: add test to CMake and fix build
Browse files Browse the repository at this point in the history
Change-Id: I65c99d62848b2d18e5c54e7b8ec28219320fb363
  • Loading branch information
aberaud committed Feb 4, 2025
1 parent c3c8a0c commit 66b320a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,10 @@ else()
add_test(NAME test_media_player COMMAND ut_test_media_player)
endif()

add_executable(ut_namedirectory test/unitTest/namedirectory/namedirectory.cpp)
target_link_libraries(ut_namedirectory ut_library)
add_test(NAME namedirectory COMMAND ut_namedirectory)

add_executable(ut_scheduler test/unitTest/scheduler.cpp)
target_link_libraries(ut_scheduler ut_library)
add_test(NAME scheduler COMMAND ut_scheduler)
Expand Down
1 change: 0 additions & 1 deletion test/unitTest/namedirectory/namedirectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ NameDirectoryTest::testRegisterName()
// Watch signals
confHandlers.insert(libjami::exportable_callback<libjami::ConfigurationSignal::NameRegistrationEnded>(
[&](const std::string&,
const std::string&,
int status,
const std::string&) {
nameRegistered = status == 0;
Expand Down

0 comments on commit 66b320a

Please sign in to comment.