digitalmars.D.bugs - [Issue 21148] New: Semaphoreci:
- d-bugmail puremagic.com (41/41) Aug 12 2020 https://issues.dlang.org/show_bug.cgi?id=21148
https://issues.dlang.org/show_bug.cgi?id=21148 Issue ID: 21148 Summary: Semaphoreci: core.exception.AssertError std/file.d(1929): unittest failure Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: bugzilla digitalmars.com This randomly pops up when running semaphoreci. The log file says: --------- ****** FAIL debug64 std.file core.exception.AssertError std/file.d(1929): unittest failure --------- Looking at std/file.d it's clearly a timing issue: ---- system unittest { import core.thread; if (exists(deleteme)) remove(deleteme); SysTime lastTime; foreach (n; 0 .. 3) { write(deleteme, "a"); auto time = timeLastModified(deleteme); remove(deleteme); assert(time != lastTime); lastTime = time; Thread.sleep(10.msecs); } } ----- --
Aug 12 2020