Test case creat05 for system call creat always passes, in fact it never fails
, the problem lies in all the file handles opened in function setup() are
closed.

creat05 is intended to test if creat will return -1 as expected after the 
number of file handles current process opened exceeds the maximum limit (default
to 1024), setup() has opened maximum file handles but it closed them
immediately, so creat05 will return PASS forever.

This fix patch just removes close().
--- ltp-full-20071031/testcases/kernel/syscalls/creat/creat05.c 2007-11-02 
16:34:57.000000000 +0800
+++ ltp-full-20071031-new/testcases/kernel/syscalls/creat/creat05.c     
2007-11-07 23:07:57.000000000 +0800
@@ -164,7 +164,6 @@ setup()
                        }
                        break;
                }
-               close(fd);
        }
 }
 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to