www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22350] New: std.process unit test sometimes fails on FreeBSD


          Issue ID: 22350
           Summary: std.process unit test sometimes fails on FreeBSD
           Product: D
           Version: D2
          Hardware: x86_64
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: snarwin+bugzilla gmail.com

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) 
     // line 1645 
     assert(execute(lsof.path, null, Config.inheritFDs).output.canFind(path)); 

Restarting the auto-tester caused the test to pass.

[1] https://github.com/dlang/phobos/pull/8259

Oct 02 2021