generic_tests update for targets without LED1

pull/14881/head
jeromecoutant 2021-07-06 16:58:01 +02:00
parent 8d3fc33965
commit d9204d06eb
1 changed files with 4 additions and 0 deletions

View File

@ -76,6 +76,7 @@ void test_case_basic()
"The quick brown fox jumps over the lazy dog");
}
#ifdef LED1
void test_case_blinky()
{
static DigitalOut myled(LED1);
@ -84,6 +85,7 @@ void test_case_blinky()
myled = !myled;
}
}
#endif
void test_case_cpp_stack()
{
@ -113,7 +115,9 @@ utest::v1::status_t greentea_failure_handler(const Case *const source, const fai
// Generic test cases
Case cases[] = {
Case("Basic", test_case_basic, greentea_failure_handler),
#ifdef LED1
Case("Blinky", test_case_blinky, greentea_failure_handler),
#endif
Case("C++ stack", test_case_cpp_stack, greentea_failure_handler),
Case("C++ heap", test_case_cpp_heap, greentea_failure_handler)
};