Skip to content

Commit

Permalink
Merge pull request #7751 from doronhi/encapsulate_linux_test
Browse files Browse the repository at this point in the history
encapsulate linux test
  • Loading branch information
ev-mp authored Feb 17, 2021
2 parents 98087e7 + 0d9597f commit e170c6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion unit-tests/internal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ set (INTERNAL_TESTS_SOURCES
internal-tests-types.cpp
internal-tests-uv-map.cpp
internal-tests-class-logic.cpp
internal-tests-linux.cpp
../catch.h
../approx.h
)

if(UNIX AND NOT ANDROID)
list(APPEND INTERNAL_TESTS_SOURCES internal-tests-linux.cpp)
endif()

add_executable(${PROJECT_NAME} ${INTERNAL_TESTS_SOURCES})
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 11)
target_link_libraries(${PROJECT_NAME} ${DEPENDENCIES})
Expand Down
3 changes: 2 additions & 1 deletion unit-tests/internal/internal-tests-linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,5 @@ TEST_CASE("named_mutex_processes", "[code]")
sem_close(sem2);
REQUIRE(child_alive == actual_test);
}
}
}

0 comments on commit e170c6b

Please sign in to comment.