1# Disable the test for Windows due to the fact that the event is
2# sent to the entire process group causing the python interpreter
3# to exit with the same error code (keyboard interrupt)
4if (NOT WIN32)
5   add_executable(platform-interrupt-test
6                  ${Platform_SOURCE_DIR}/include/platform/interrupt.h
7                  ${Platform_SOURCE_DIR}/include/platform/platform.h
8                  interrupt_test.cc)
9   target_link_libraries(platform-interrupt-test platform)
10   add_test(platform-interrupt-test
11            python
12            ${Platform_SOURCE_DIR}/tests/interrupt/interrupt_test.py
13            ${Platform_BINARY_DIR}/tests/interrupt/platform-interrupt-test)
14endif (NOT WIN32)
15