From 99e6fb5244c6c99341fed54bbc4cfbd2fcc4d8f5 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sat, 7 Aug 2010 00:22:46 +0000 Subject: 2010-08-06 Bharath Suri PR 1654/testing * psx13/test.c, psx13/psx13.scn: Test case to improve testing of dup2 routine. * psxfile01/test.c, psxfile01/psxfile01.scn: New test to improve testing of fcntl routine. * psximfs01/init.c, psximfs01/psximfs01.scn: Improve testing of imfs routines. * psximfs02/init.c, psximfs02/psximfs02.scn: Improve coverage of imfs routines. * psxpasswd02/init.c, psxpasswd02/psxpasswd02.scn: New tests to improve coverage of getpwent.c. --- testsuites/psxtests/psx13/test.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'testsuites/psxtests/psx13/test.c') diff --git a/testsuites/psxtests/psx13/test.c b/testsuites/psxtests/psx13/test.c index cc8b09e710..cda50fe1ab 100644 --- a/testsuites/psxtests/psx13/test.c +++ b/testsuites/psxtests/psx13/test.c @@ -142,7 +142,7 @@ int DeviceLSeekTest (void) else retval = FALSE; - /* assert (retval == TRUE);*/ + close( fd ); /* assert (retval == TRUE);*/ return (retval); } @@ -187,6 +187,8 @@ int DupTest(void) else retval = FALSE; + close( fd1 ); + close( fd2 ); /* assert (retval == TRUE);*/ return (retval); @@ -257,7 +259,7 @@ int Dup2Test(void) } close (fd1); - + close (fd2); /* assert (retval == TRUE);*/ return (retval); -- cgit v1.2.3