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
component.mk
test_cxx_cond_var.cpp
test_cxx_std_future.cpp
test_pthread.c
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