summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/cris/c/syscall5.c
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2006-10-02 03:18:51 +0000
committerHans-Peter Nilsson <hp@axis.com>2006-10-02 03:18:51 +0000
commit1654a6f72803b321cfe3d7ac28ea1abed5d26fd9 (patch)
tree4408a9d45d32c4934f41cf98d5e5a32c250c0ba6 /sim/testsuite/sim/cris/c/syscall5.c
parent28d9ed440abaea539b9571dfe8ad2ec6f834a890 (diff)
downloadbinutils-gdb-1654a6f72803b321cfe3d7ac28ea1abed5d26fd9.tar.gz
* sim/cris/c/clone5.c, sim/cris/c/mprotect1.c,
sim/cris/c/rtsigprocmask1.c, sim/cris/c/rtsigsuspend1.c, sim/cris/c/sig7.c, sim/cris/c/sigreturn1.c, sim/cris/c/sigreturn2.c, sim/cris/c/syscall1.c, sim/cris/c/syscall2.c, sim/cris/c/sysctl2.c, sim/cris/c/fcntl1.c, sim/cris/c/readlink2.c: Add code to print ENOSYS if syscall being tested returns ENOSYS. Add early exit where needed. Change any existing code to print "xyzzy", not "pass". * sim/cris/asm/option3.ms, sim/cris/asm/option4.ms, sim/cris/c/clone6.c, sim/cris/c/fcntl2.c, sim/cris/c/mprotect2.c, sim/cris/c/readlink11.c, sim/cris/c/rtsigprocmask2.c, sim/cris/c/rtsigsuspend2.c, sim/cris/c/sig13.c, sim/cris/c/sigreturn3.c, sim/cris/c/sigreturn4.c, sim/cris/c/syscall3.c, sim/cris/c/syscall4.c, sim/cris/c/syscall5.c, sim/cris/c/syscall6.c, sim/cris/c/syscall7.c, sim/cris/c/syscall8.c, sim/cris/c/sysctl3.c: New tests.
Diffstat (limited to 'sim/testsuite/sim/cris/c/syscall5.c')
-rw-r--r--sim/testsuite/sim/cris/c/syscall5.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sim/testsuite/sim/cris/c/syscall5.c b/sim/testsuite/sim/cris/c/syscall5.c
new file mode 100644
index 00000000000..2eac9008972
--- /dev/null
+++ b/sim/testsuite/sim/cris/c/syscall5.c
@@ -0,0 +1,9 @@
+/* As the included file, but specifying ENOSYS with message.
+#notarget: cris*-*-elf
+#sim: --cris-unknown-syscall=enosys
+#output: Unimplemented syscall: 166 (0x1, 0x2, 0x3, 0x4, 0x5, 0x6)\n
+#output: ENOSYS\n
+#output: xyzzy\n
+*/
+
+#include "syscall1.c"