This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, libstdc++, testsuite] Modify tests to use tmpnam()


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]