Replace fork with try_fork in testsuite?

Mark Mitchell
Thu May 5 04:23:00 GMT 2005

At present, the testsuite has some unguarded calls to "fork", which 
result in spurious failures on non-POSIX systems (including simulators). 
  We've solved this problem for FIFOs by using "try_mkfifo", which 
either calls "mkfifo" or just exits.  I would like to implement the same 
solution for "fork", replacing all calls to "fork" with calls to "try_fork".

Would that be acceptable?

Mark Mitchell
CodeSourcery, LLC
(916) 791-8304

More information about the Libstdc++ mailing list