Skip to content

Commit 19c683d

Browse files
Skip the flaky parts of VSO_0226079_mutex. (#1473)
1 parent 560bcea commit 19c683d

File tree

1 file changed

+5
-1
lines changed
  • tests/std/tests/VSO_0226079_mutex

1 file changed

+5
-1
lines changed

tests/std/tests/VSO_0226079_mutex/test.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ struct mutex_test_fixture {
313313
assert(ul.owns_lock());
314314
}) < 1h);
315315

316-
// Test failing to acquire locks on timeout
316+
#if 0 // TRANSITION, GH-1472
317+
// Test failing to acquire locks on timeout
317318
ot.lock();
318319
assert(time_execution([this] { assert(!mtx.try_lock_for(50ms)); }) >= 50ms);
319320
assert(time_execution([this] { assert(!mtx.try_lock_until(system_clock::now() + 50ms)); }) >= 50ms);
@@ -334,6 +335,7 @@ struct mutex_test_fixture {
334335
assert(!ul.owns_lock());
335336
}) >= 50ms);
336337
ot.unlock();
338+
#endif // TRANSITION, GH-1472
337339
}
338340

339341
// nonstandard xtime type
@@ -365,6 +367,7 @@ struct mutex_test_fixture {
365367
assert(ul.try_lock_until(&xt));
366368
}) < 1h);
367369

370+
#if 0 // TRANSITION, GH-1472
368371
ot.lock();
369372
assert(time_execution([this] {
370373
const auto xt = to_xtime(50ms);
@@ -376,6 +379,7 @@ struct mutex_test_fixture {
376379
assert(!ul.try_lock_until(&xt));
377380
}) >= 50ms);
378381
ot.unlock();
382+
#endif // TRANSITION, GH-1472
379383
}
380384

381385
void test_recursive_lockable() {

0 commit comments

Comments
 (0)