Bug 22350 – std.process unit test sometimes fails

Status
NEW
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2021-10-02T21:09:54Z
Last change time
2024-12-01T16:39:27Z
Keywords
TestSuite
Assigned to
No Owner
Creator
Paul Backus
Moved to GitHub: phobos#9831 →

Comments

Comment #0 by snarwin+bugzilla — 2021-10-02T21:09:54Z
Running the unit tests for std.process on FreeBSD sometimes fails, with the following message: --- core.exception.AssertError@std/process.d(1645): Assertion failure --- The assertion in question is here: --- // last resort, try lsof (not available on all Posix) TestScript lsof = "lsof -p$$"; auto lsofRes = execute(lsof.path, null); if (lsofRes.status == 0) { assert(!lsofRes.output.canFind(path)); // line 1645 assert(execute(lsof.path, null, Config.inheritFDs).output.canFind(path)); return; } --- This failure was observed in the auto-tester results for Phobos PR #8259 [1]. Restarting the auto-tester caused the test to pass. [1] https://github.com/dlang/phobos/pull/8259
Comment #1 by snarwin+bugzilla — 2021-10-03T22:38:15Z
This may have been fixed by Phobos PR #8261 [1]. [1] https://github.com/dlang/phobos/pull/8261
Comment #2 by snarwin+bugzilla — 2021-10-19T14:14:23Z
Comment #3 by snarwin+bugzilla — 2021-10-22T20:30:46Z
Comment #4 by johan_forsberg_86 — 2021-10-24T22:59:05Z
Comment #5 by robert.schadek — 2024-12-01T16:39:27Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9831 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB