Skip to content

Flaky libcxx test: thread.timedmutex.recursive/try_lock_until.pass.cpp #5899

@StephanTLavavej

Description

@StephanTLavavej

An MSVC-internal test run failed with:

Assertion failed: succeeded, file C:\repos\msvc\src\vctools\crt\github\llvm-project\libcxx\test\std\thread\thread.mutex\thread.mutex.requirements\thread.timedmutex.requirements\thread.timedmutex.recursive\try_lock_until.pass.cpp, line 88

https://github.com/llvm/llvm-project/blob/6ed829baa3861adbe053c16878fbae74b9c1e9d6/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock_until.pass.cpp#L73-L88

  // Try to lock an already-locked mutex for a long enough amount of time and succeed.
  // This is technically flaky, but we use such long durations that it should pass even
  // in slow or contended environments.

It appears that the world 500ms is not enough.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedSomething works now, yay!testRelated to test code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions