summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuites/psxtests/ChangeLog4
-rw-r--r--testsuites/psxtests/psxrdwrv/test.c10
2 files changed, 9 insertions, 5 deletions
diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog
index e9df15d8db..08b58a0dc0 100644
--- a/testsuites/psxtests/ChangeLog
+++ b/testsuites/psxtests/ChangeLog
@@ -1,5 +1,9 @@
2010-04-25 Joel Sherrill <joel.sherrill@oarcorp.com>
+ * psxrdwrv/test.c: Use SIZE_MAX not SSIZE_MAX.
+
+2010-04-25 Joel Sherrill <joel.sherrill@oarcorp.com>
+
* psx07/init.c, psx07/task.c: Introduce enough of a delay so the Init()
thread can reliably reach the pthread_join() call.
diff --git a/testsuites/psxtests/psxrdwrv/test.c b/testsuites/psxtests/psxrdwrv/test.c
index 6b0e105c86..7c2e8593d6 100644
--- a/testsuites/psxtests/psxrdwrv/test.c
+++ b/testsuites/psxtests/psxrdwrv/test.c
@@ -316,11 +316,11 @@ int doErrorTest(void)
/* writev -- iov_len total overflows */
vec[0].iov_base = vec;
- vec[0].iov_len = SSIZE_MAX;
+ vec[0].iov_len = SIZE_MAX;
vec[1].iov_base = vec;
- vec[1].iov_len = SSIZE_MAX;
+ vec[1].iov_len = SIZE_MAX;
vec[2].iov_base = vec;
- vec[2].iov_len = SSIZE_MAX;
+ vec[2].iov_len = SIZE_MAX;
puts("writev iov_len total overflows -- EINVAL");
rc = writev(fd, vec, 3);
if ( (rc != -1) || (errno != EINVAL) ) {
@@ -331,9 +331,9 @@ int doErrorTest(void)
/* readv -- iov_len total overflows */
vec[0].iov_base = vec;
- vec[0].iov_len = SSIZE_MAX;
+ vec[0].iov_len = SIZE_MAX;
vec[1].iov_base = vec;
- vec[1].iov_len = SSIZE_MAX;
+ vec[1].iov_len = SIZE_MAX;
puts("readv iov_len total overflows -- EINVAL");
rc = readv(fd, vec, 2);
if ( (rc != -1) || (errno != EINVAL) ) {