Quote:
Originally Posted by porter
Do you have the source to the application?
Is this a reasonable test case given that the application does not do this normally?
What would you expect an application to do if it got an error from "close()"?
I, for one as a programmer, wouldn't assume the file was still open and continue to use the same filedescriptor. If I got an error from a close(), I would may report the error but have to treat the file descriptor as "undefined".
|
I do have access to the source code (albeit read only). This is an application that records system information to a file. The file is closed every 15 minutes and sent to Enterprise Storage. A new file is opened.
The application is supposed to post an alert in the event that it is unable to close the file when the timer pops. This is the case I am supposed to test. Failure to transfer the file is a separate test case.