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/4278/head
Martin Kojtal 2017-04-20 10:53:01 +01:00 committed by adbridge
parent 83d186a355
commit 3f549ad1e7
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