Skip to content

Commit 84eddd0

Browse files
committed
tests: race test - add not supported for single threaded env
Fixes #4196. As someone might not be aware that settting default_lib to small has some implications regarding thread safety, therefore we print an error.
1 parent 247238d commit 84eddd0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

TESTS/mbed_drivers/race_test/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
#include "SingletonPtr.h"
2323
#include <stdio.h>
2424

25+
#ifndef MBED_RTOS_SINGLE_THREAD
26+
#error [NOT_SUPPORTED] test not supported for single threaded enviroment
27+
#endif
28+
2529
using namespace utest::v1;
2630

2731
#define TEST_STACK_SIZE 1024

0 commit comments

Comments
 (0)