[all-commits] [llvm/llvm-project] 9e32bf: [libcxx testing] Remove ALLOW_RETRIES from sleep_f...

David Zarzycki via All-commits all-commits at lists.llvm.org
Tue May 12 03:56:06 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e32bf550d13ffbc75671c0968b466e0e5c9dea2
      https://github.com/llvm/llvm-project/commit/9e32bf550d13ffbc75671c0968b466e0e5c9dea2
  Author: David Zarzycki <dave at znu.io>
  Date:   2020-05-12 (Tue, 12 May 2020)

  Changed paths:
    M libcxx/test/libcxx/thread/thread.threads/thread.thread.this/sleep_for.pass.cpp

  Log Message:
  -----------
  [libcxx testing] Remove ALLOW_RETRIES from sleep_for.pass.cpp

Operating systems are best effort by default, so we cannot assume that
sleep-like APIs return as soon as we'd like.

Even if a sleep-like API returns when we want it to, the potential for
preemption means that attempts to measure time are subject to delays.




More information about the All-commits mailing list