esp-idf/components/pthread
Angus Gratton 852462f4e2 test: Fix possible race in pthread C++ test
Also use TEST_ASSERT_EQUAL to get better debugging

Debugging intermittent UT failures on S2 release config

In the old version, the 300ms delay in between the two kinds of test
was supposed to keep the tasks in lockstep so it didn't matter that
global_sp was protected by two muxes.

However it seems like sometimes they could get out of sync -
I think because of a race in the sleep_until test. If the
second counter ticks over at that exact moment sleeping starts,
then the task doesn't sleep and will immediately keep running
 for the next iteration, possibly racing the other tasks.
2019-12-19 15:55:51 +11:00
..
include tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
test test: Fix possible race in pthread C++ test 2019-12-19 15:55:51 +11:00
CMakeLists.txt global: remove gcc 5.2 support 2019-11-20 11:17:27 +01:00
component.mk global: remove gcc 5.2 support 2019-11-20 11:17:27 +01:00
Kconfig pthread: remove ESP32_ prefix from Kconfig options 2019-07-29 04:43:49 +02:00
pthread_cond_var.c tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
pthread_internal.h tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
pthread_local_storage.c tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
pthread.c Merge branch 'master' into feature/esp32s2beta_update 2019-08-08 15:26:58 +10:00
sdkconfig.rename pthread: remove ESP32_ prefix from Kconfig options 2019-07-29 04:43:49 +02:00