Add user-defined clock to libstdc++ condition_variable tests
authorMike Crowe <mac@mcrowe.com>
Wed, 4 Sep 2019 22:43:20 +0000 (22:43 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 4 Sep 2019 22:43:20 +0000 (23:43 +0100)
commit76e0dd66c87720a8a82a6d5f44ba4d8f63a51b1d
tree07d85350cadbc5a5a6b194b5e04f48dfbd6897a3
parent9eb730b8391794c7d451c7fde661b18ccacfbc3a
Add user-defined clock to libstdc++ condition_variable tests

2019-09-04  Mike Crowe  <mac@mcrowe.com>

* testsuite/30_threads/condition_variable/members/2.cc (test01):
Parameterise so that test can be run against an arbitrary clock.
(main): Test using std::chrono::steady_clock and a user-defined
clock in addition to the previous std::chrono::system_clock.
* testsuite/30_threads/condition_variable_any/members/2.cc: Likewise.

From-SVN: r275389
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/30_threads/condition_variable/members/2.cc
libstdc++-v3/testsuite/30_threads/condition_variable_any/members/2.cc