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.
pull/4205/head
Martin Kojtal 2017-04-20 10:53:01 +01:00
parent 247238d993
commit 84eddd01c1
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@
#include "SingletonPtr.h"
#include <stdio.h>
#ifndef MBED_RTOS_SINGLE_THREAD
#error [NOT_SUPPORTED] test not supported for single threaded enviroment
#endif
using namespace utest::v1;
#define TEST_STACK_SIZE 1024