[libcxx testing] Remove ALLOW_RETRIES from lock_guard tests
authorDavid Zarzycki <dave@znu.io>
Mon, 18 May 2020 11:39:12 +0000 (07:39 -0400)
committerDavid Zarzycki <dave@znu.io>
Mon, 18 May 2020 11:44:16 +0000 (07:44 -0400)
commita675c1dee483129611794f37e0867f565181827b
treeec13ebc3c33b5b1335f16259ed18417775675922
parent87b235db63a3d8d5b82d60ef6202b92b94a7d9d2
[libcxx testing] Remove ALLOW_RETRIES from lock_guard tests

These two tests were clumsily using time measurements to determine
whether std::lock_guard was working correctly. In practice, this
approach merely verified that the underlying lock properly waits.

Now these two tests verify that lock is acquired, not dropped
prematurely, and finally, actually dropped at the end of the scope.
libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.guard/adopt_lock.pass.cpp
libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.guard/mutex.pass.cpp