call system in test cases?

Thomas Koenig Thomas.Koenig@online.de
Sun Jan 16 21:40:00 GMT 2005


I'm currently cooking up a few test cases for PR 18982, along
with a patch.  For a test case, I need to generate files which
the user can't read / write.

What is the best way to go about this?  Currently, I use
call system("touch foo.bar; chmod u-w foo.bar").  Is there
anything more elegant or portable?

	Thomas



More information about the Fortran mailing list