Wrapped test around MBED_CONF_RTOS_PRESENT

Wrapping a #define to prevent test from being run when no RTOS is present.
pull/7202/head
Cruz Monrreal 2018-06-13 09:28:53 -05:00 committed by GitHub
parent 6fa560930c
commit 5fe241bac9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#if MBED_CONF_RTOS_PRESENT
#include "greentea-client/test_env.h"
#include "utest/utest.h"
#include "unity/unity.h"
@ -363,3 +366,5 @@ int main()
{
return !utest::v1::Harness::run(specification);
}
#endif //MBED_CONF_RTOS_PRESENT