esp-idf/components/pthread/test
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
..
CMakeLists.txt components: use new component registration api 2019-06-21 19:53:29 +08:00
component.mk 1) Mux API was added 2017-09-06 10:30:23 +08:00
test_cxx_cond_var.cpp pthread: Added support for pthread condition variables 2017-11-23 11:26:51 +08:00
test_cxx_std_future.cpp pthread: Added support for pthread condition variables 2017-11-23 11:26:51 +08:00
test_pthread_cxx.cpp test: Fix possible race in pthread C++ test 2019-12-19 15:55:51 +11:00
test_pthread_local_storage.c unity: separate common and IDF specific functionality 2018-11-19 12:36:31 +08:00
test_pthread.c pthread tests : test case added for detach functionality 2018-12-28 14:41:24 +05:30