[patch, libstdc++, testsuite] Modify tests to use tmpnam()
Paolo Carlini
paolo.carlini@oracle.com
Wed Mar 3 22:17:00 GMT 2010
Hi,
> I took a look at two libstdc++ tests that are failing for me on IA64
> HP-UX and found that the problem was related to running the tests over
> NFS. Both tests are using mkfifo to create pipe's in the current
> working directory and that works for me on a local filesystem but fails
> over NFS. I am not sure if that is an HP-UX bug or not, but I would
> like to change the tests to use tmpnam to create the pipes, this fixes
> the problem on IA64 HP-UX and causes no regressions. There are already
> tests (27_io/headers/cstdio/macros.cc and
> 27_io/headers/cstdio/functions_std.cc) that check for the existence of
> the L_tmpnam macro and the tmpnam function so using them in these
> tests shouldn't be a problem.
>
> OK for checkin?
>
Ok. Actually, it seems to me we should use tmpnam more consistently -
after all it's a perfectly standard C89 facility - instead of inventing
names here and there for temporary files. Can you add a one-line comment
about that before the arrays?
Thanks,
Paolo.
More information about the Gcc-patches
mailing list