From f1b2dab2709eb362624f3d0904ba1de1b114df40 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 9 Jul 2010 22:07:11 +0000 Subject: 2010-07-09 Bharath Suri PR 1610/testing * psx13/test.c, psx13/psx13.scn: Remove the test cases which exercise pipe. These are new a new test under psxpipe01/ * psxpipe01/init.c, psxpipe01/Makefile.am, psxpipe01/psxpipe01.scn, psxpipe01/psxpipe01.doc: Added new test. * Makefile.am, configure.ac: Changes due to addition of new test: psxpipe01. --- testsuites/psxtests/psx13/test.c | 61 ---------------------------------------- 1 file changed, 61 deletions(-) (limited to 'testsuites/psxtests/psx13/test.c') diff --git a/testsuites/psxtests/psx13/test.c b/testsuites/psxtests/psx13/test.c index eceb696907..10ff6bd5ca 100644 --- a/testsuites/psxtests/psx13/test.c +++ b/testsuites/psxtests/psx13/test.c @@ -11,7 +11,6 @@ * fsync - test implemented * pathconf - test implemented * fpathconf - test implemented - * pipe - test implemented * umask - test implemented * utime - test implemented * utimes - test implemented @@ -46,8 +45,6 @@ int FDataSyncTest(void); int UMaskTest(void); int UTimeTest(void); int UTimesTest(void); -int PipeTest(void); -int PipeTestNull(void); int PathConfTest(void); int FPathConfTest(void); int FSyncTest(void); @@ -488,52 +485,6 @@ int UTimesTest (void) return (retval); } -/* --------------------------------------------------------------- - * PipeTest function - * - * Hits the pipe code. - * - * arguments: none - * assumptions: pipe function available. - * actions: call pipe. - * - * returns: TRUE if pipe returns ENOSYS, - * FALSE otherwise. - * - * --------------------------------------------------------------- - */ - -int PipeTest (void) -{ - int error = 0, retval = FALSE; - int fd[2]; - - error = pipe(fd); - - if ((error == -1) && (errno == ENOSYS)) - retval = TRUE; - else - retval = FALSE; - - /* assert (retval == TRUE);*/ - - return(retval); -} - -int PipeTestNull (void) -{ - int error = 0, retval = FALSE; - - error = pipe(NULL); - - if ((error == -1) && (errno == ENOSYS)) - retval = TRUE; - else - retval = FALSE; - - return(retval); -} - /* --------------------------------------------------------------- * PathConfTest function * @@ -731,18 +682,6 @@ int main( else printf ("Failed!!!\n"); - printf ("Testing pipe()........... "); - if (PipeTest() == TRUE) - printf ("Success.\n"); - else - printf ("Failed!!!\n"); - - printf ("Testing pipe() with NULL........... "); - if (PipeTestNull() == TRUE) - printf ("Success.\n"); - else - printf ("Failed!!!\n"); - printf ("Testing fsync().......... "); if (FSyncTest() == TRUE) printf ("Success.\n"); -- cgit v1.2.3