summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxrdwrv
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-12-28 16:43:10 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-12-28 16:43:10 +0000
commit161f54b4d60ebff1d40359ac781be3dbe95a3404 (patch)
treebb161cb53e83b31f055022edad656c990ceab5cc /testsuites/psxtests/psxrdwrv
parent2009-12-28 Aanjhan Ranganathan <aanjhan@gmail.com> (diff)
downloadrtems-161f54b4d60ebff1d40359ac781be3dbe95a3404.tar.bz2
2009-12-28 Shrikant Gaikwad <n3oo3n@gmail.com>
* psx13/test.c, psx13/psx13.scn Added new routine PipeTestNull() to cover the trivial NULL case for pipe function.
Diffstat (limited to 'testsuites/psxtests/psxrdwrv')
-rw-r--r--testsuites/psxtests/psxrdwrv/test.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/testsuites/psxtests/psxrdwrv/test.c b/testsuites/psxtests/psxrdwrv/test.c
index ae47ea1674..6b0e105c86 100644
--- a/testsuites/psxtests/psxrdwrv/test.c
+++ b/testsuites/psxtests/psxrdwrv/test.c
@@ -1,13 +1,10 @@
/*
- * Psx13
- *
* This test exercises the following routines:
*
- * readv - implemented
- * writev - implemented
- *
+ * + readv
+ * + writev
*
- * COPYRIGHT (c) 1989-2007.
+ * COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -204,7 +201,7 @@ int doErrorTest(void)
/*
* Open the file for the rest of the tests
*/
- fp = fopen(TESTFILE, "wt");
+ fp = fopen(TESTFILE, "w+");
if ( fp == NULL ) {
printf( "fopen for error 2: %d=%s\n", errno, strerror(errno));
return FALSE;
@@ -327,7 +324,7 @@ int doErrorTest(void)
puts("writev iov_len total overflows -- EINVAL");
rc = writev(fd, vec, 3);
if ( (rc != -1) || (errno != EINVAL) ) {
- printf( "writev error 7: %d=%s\n", errno, strerror(errno) );
+ printf( "writev error 7: rc=%d %d=%s\n", rc, errno, strerror(errno) );
fclose(fp);
return FALSE;
}
@@ -340,7 +337,7 @@ int doErrorTest(void)
puts("readv iov_len total overflows -- EINVAL");
rc = readv(fd, vec, 2);
if ( (rc != -1) || (errno != EINVAL) ) {
- printf( "readv error 7: %d=%s\n", errno, strerror(errno) );
+ printf( "read error 7: rc=%d %d=%s\n", rc, errno, strerror(errno) );
fclose(fp);
return FALSE;
}