From 161f54b4d60ebff1d40359ac781be3dbe95a3404 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 28 Dec 2009 16:43:10 +0000 Subject: 2009-12-28 Shrikant Gaikwad * psx13/test.c, psx13/psx13.scn Added new routine PipeTestNull() to cover the trivial NULL case for pipe function. --- testsuites/psxtests/psxrdwrv/test.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'testsuites/psxtests/psxrdwrv') 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; } -- cgit v1.2.3