From 78ec812f3a1d5c270a191725d951d2e2321da271 Mon Sep 17 00:00:00 2001 From: Oren Cohen Date: Mon, 25 Feb 2019 14:16:45 +0200 Subject: [PATCH 1/2] Add define to skip greentea sync --- .../frameworks/greentea-client/source/greentea_test_env.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/features/frameworks/greentea-client/source/greentea_test_env.cpp b/features/frameworks/greentea-client/source/greentea_test_env.cpp index 1b59eca20b5..c1f0d877168 100644 --- a/features/frameworks/greentea-client/source/greentea_test_env.cpp +++ b/features/frameworks/greentea-client/source/greentea_test_env.cpp @@ -94,8 +94,10 @@ void _GREENTEA_SETUP_COMMON(const int timeout, const char *host_test_name, char * This function is blocking. */ extern "C" void GREENTEA_SETUP(const int timeout, const char *host_test_name) { +#if defined(NO_GREENTEA) char _value[GREENTEA_UUID_LENGTH] = {0}; _GREENTEA_SETUP_COMMON(timeout, host_test_name, _value, GREENTEA_UUID_LENGTH); +#endif } /** \brief Handshake with host and send setup data (timeout and host test name). Allows you to preserve sync UUID. From b5bb1c1211d8a318007f4787797e25c0b571962d Mon Sep 17 00:00:00 2001 From: Cruz Monrreal Date: Wed, 27 Feb 2019 21:38:16 +0200 Subject: [PATCH 2/2] Update features/frameworks/greentea-client/source/greentea_test_env.cpp Co-Authored-By: orenc17 --- .../frameworks/greentea-client/source/greentea_test_env.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/frameworks/greentea-client/source/greentea_test_env.cpp b/features/frameworks/greentea-client/source/greentea_test_env.cpp index c1f0d877168..89ee51c39c8 100644 --- a/features/frameworks/greentea-client/source/greentea_test_env.cpp +++ b/features/frameworks/greentea-client/source/greentea_test_env.cpp @@ -94,7 +94,7 @@ void _GREENTEA_SETUP_COMMON(const int timeout, const char *host_test_name, char * This function is blocking. */ extern "C" void GREENTEA_SETUP(const int timeout, const char *host_test_name) { -#if defined(NO_GREENTEA) +#if ! defined(NO_GREENTEA) char _value[GREENTEA_UUID_LENGTH] = {0}; _GREENTEA_SETUP_COMMON(timeout, host_test_name, _value, GREENTEA_UUID_LENGTH); #endif