diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-04-25 19:53:38 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-04-25 19:53:38 +0000 |
commit | 18b3b5811044e0106a15bb6648b28f24211a102c (patch) | |
tree | 4a136b55afb48182abfcd663fed3604e848c2819 | |
parent | 2010-04-25 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-18b3b5811044e0106a15bb6648b28f24211a102c.tar.bz2 |
2010-04-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxrdwrv/test.c: Use SIZE_MAX not SSIZE_MAX.
-rw-r--r-- | testsuites/psxtests/ChangeLog | 4 | ||||
-rw-r--r-- | testsuites/psxtests/psxrdwrv/test.c | 10 |
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) ) { |