diff --git a/test/unittest/dds/participant/CMakeLists.txt b/test/unittest/dds/participant/CMakeLists.txt index 516406c6d0f..927239c6b51 100644 --- a/test/unittest/dds/participant/CMakeLists.txt +++ b/test/unittest/dds/participant/CMakeLists.txt @@ -47,7 +47,7 @@ target_link_libraries(ParticipantTests fastrtps fastcdr foonathan_memory ${CMAKE_DL_LIBS}) if(EPROSIMA_TEST_DNS_NOT_SET_UP) - set(dns_filter "ParticipantTests.SimpleParticipantRemoteServerListConfigurationDNS") + set(dns_filter "-ParticipantTests.SimpleParticipantRemoteServerListConfigurationDNS") endif() gtest_discover_tests(ParticipantTests TEST_FILTER ${dns_filter})