CMake: Refactor MBED_TEST_MODE test application

pull/14538/head
harmut01 2021-04-20 17:20:55 +01:00
parent fa1d9c059d
commit c29b561784
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ set(MBED_CONFIG_PATH ${CMAKE_CURRENT_BINARY_DIR} CACHE STATIC "")
include(${MBED_PATH}/tools/cmake/app.cmake)
add_test(NAME mbed-test-mode-check COMMAND mbed-test-mode-check)
add_executable(mbed-test-mode-check)
project(mbed-test-mode-check)

View File

@ -8,6 +8,6 @@
#error "MBED_TEST_MODE not defined with BUILD_TESTING on"
#else
int main(){
return 1;
return 0;
}
#endif