diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-09 22:07:11 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-09 22:07:11 +0000 |
commit | f1b2dab2709eb362624f3d0904ba1de1b114df40 (patch) | |
tree | 3540187bd4542ef41831e173faf4c634d34b93ba /testsuites/psxtests/psx13/test.c | |
parent | 2010-07-09 Bharath Suri <bharath.s.jois@gmail.com> (diff) | |
download | rtems-f1b2dab2709eb362624f3d0904ba1de1b114df40.tar.bz2 |
2010-07-09 Bharath Suri <bharath.s.jois@gmail.com>
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.
Diffstat (limited to '')
-rw-r--r-- | testsuites/psxtests/psx13/test.c | 61 |
1 files changed, 0 insertions, 61 deletions
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); @@ -489,52 +486,6 @@ int UTimesTest (void) } /* --------------------------------------------------------------- - * 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 * * Hits the pathconf code. @@ -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"); |