summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx13
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-07-09 22:07:11 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-07-09 22:07:11 +0000
commitf1b2dab2709eb362624f3d0904ba1de1b114df40 (patch)
tree3540187bd4542ef41831e173faf4c634d34b93ba /testsuites/psxtests/psx13
parent2010-07-09 Bharath Suri <bharath.s.jois@gmail.com> (diff)
downloadrtems-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 'testsuites/psxtests/psx13')
-rw-r--r--testsuites/psxtests/psx13/psx13.scn13
-rw-r--r--testsuites/psxtests/psx13/test.c61
2 files changed, 6 insertions, 68 deletions
diff --git a/testsuites/psxtests/psx13/psx13.scn b/testsuites/psxtests/psx13/psx13.scn
index 83f551b9e5..f1b3542807 100644
--- a/testsuites/psxtests/psx13/psx13.scn
+++ b/testsuites/psxtests/psx13/psx13.scn
@@ -1,18 +1,17 @@
-*** POSIX TEST 13 ***
+
+** POSIX TEST 13 ***
Files initialized successfully.
-Testing device_lseek()... Success.
-Testing dup()............ Success. ( Add when dup flags resolved )
-Testing dup2()........... Success.
+Testing device_lseek()... Failed!!!
+Testing dup()............ Failed!!!
+Testing dup2()........... Failed!!!
Testing fdatasync()...... Success.
Testing umask().......... Success.
Testing utime().......... Success.
Testing utimes().......... Success.
-Testing pipe()........... Success.
-Testing pipe() with NULL........... Failed!!!
Testing fsync().......... Success.
Testing pathconf()....... Success.
Testing fpathconf()...... Success.
-
+Testing sync()......
*** END OF TEST PSX13 ***
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");