summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxrdwrv/psxrdwrv.scn
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxrdwrv/psxrdwrv.scn')
-rw-r--r--testsuites/psxtests/psxrdwrv/psxrdwrv.scn18
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxrdwrv/psxrdwrv.scn b/testsuites/psxtests/psxrdwrv/psxrdwrv.scn
new file mode 100644
index 0000000000..26e1ea5ac9
--- /dev/null
+++ b/testsuites/psxtests/psxrdwrv/psxrdwrv.scn
@@ -0,0 +1,18 @@
+*** POSIX TEST READV/WRITEV ***
+writev bad file descriptor -- EBADF
+readv bad file descriptor -- EBADF
+writev bad iovec pointer -- EINVAL
+readv bad iovec pointer -- EINVAL
+readv bad iovcnt of 0 -- EINVAL
+readv bad iovcnt of 0 -- EINVAL
+writev bad iovcnt negative -- EINVAL
+readv bad iovcnt negative -- EINVAL
+writev bad iov[i].iov_base -- EINVAL
+readv bad iov[i].iov_base -- EINVAL
+writev bad iov[i].iov_len < 0 -- EINVAL
+readv bad iov[i].iov_len = 0 -- EINVAL
+writev iov_len total overflows -- EINVAL
+readv iov_len total overflows -- EINVAL
+File written using writev .. OK
+File read using readv .. OK
+*** END OF TEST PSXRDWRV ***