Browse Source
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.gdb_6_6-branch
31 changed files with 233 additions and 16 deletions
@ -0,0 +1,7 @@ |
|||
#mach: crisv0 crisv3 crisv8 crisv10 crisv32 |
|||
#sim: --cris-cycles=foo |
|||
#xerror: |
|||
#output: Unknown option `--cris-cycles=foo'\n |
|||
.include "testutils.inc" |
|||
start |
|||
fail |
|||
@ -0,0 +1,7 @@ |
|||
#mach: crisv0 crisv3 crisv8 crisv10 crisv32 |
|||
#sim: --cris-unknown-syscall=foo |
|||
#xerror: |
|||
#output: Unknown option `--cris-unknown-syscall=foo'\n |
|||
.include "testutils.inc" |
|||
start |
|||
fail |
|||
@ -0,0 +1,8 @@ |
|||
/* As the included file, but specifying silent ENOSYS.
|
|||
#notarget: cris*-*-elf |
|||
#sim: --cris-unknown-syscall=enosys-quiet |
|||
#output: ENOSYS\n |
|||
#output: xyzzy\n |
|||
*/ |
|||
|
|||
#include "clone5.c" |
|||
@ -0,0 +1,8 @@ |
|||
/* As the included file, but specifying silent ENOSYS.
|
|||
#notarget: cris*-*-elf |
|||
#sim: --cris-unknown-syscall=enosys-quiet |
|||
#output: ENOSYS\n |
|||
#output: xyzzy\n |
|||
*/ |
|||
|
|||
#include "fcntl1.c" |
|||
@ -0,0 +1,8 @@ |
|||
/* As the included file, but specifying silent ENOSYS.
|
|||
#notarget: cris*-*-elf |
|||
#sim: --cris-unknown-syscall=enosys-quiet |
|||
#output: ENOSYS\n |
|||
#output: xyzzy\n |
|||
*/ |
|||
|
|||
#include "mprotect1.c" |
|||
@ -0,0 +1,9 @@ |
|||
/* As readlink5.c (sic), but specifying silent ENOSYS.
|
|||
#notarget: cris*-*-elf |
|||
#dest: ./readlink11.c.x |
|||
#sim: --cris-unknown-syscall=enosys-quiet |
|||
#output: ENOSYS\n |
|||
#output: xyzzy\n |
|||
*/ |
|||
|
|||
#include "readlink2.c" |
|||
@ -0,0 +1,9 @@ |
|||
/* As the included file, but specifying silent ENOSYS.
|
|||
#notarget: cris*-*-elf |
|||
#cc: additional_flags=-pthread |
|||
#sim: --cris-unknown-syscall=enosys-quiet |
|||
#output: ENOSYS\n |
|||
#output: xyzzy\n |
|||
*/ |
|||
|
|||
#include "rtsigprocmask1.c" |
|||
@ -0,0 +1,8 @@ |
|||
/* As the included file, but specifying silent ENOSYS.
|
|||
#notarget: cris*-*-elf |
|||
#sim: --cris-unknown-syscall=enosys-quiet |
|||
#output: ENOSYS\n |
|||
#output: xyzzy\n |
|||
*/ |
|||
|
|||
#include "rtsigsuspend1.c" |
|||
@ -0,0 +1,8 @@ |
|||
/* As the included file, but specifying silent ENOSYS.
|
|||
#notarget: cris*-*-elf |
|||
#sim: --cris-unknown-syscall=enosys-quiet |
|||
#output: ENOSYS\n |
|||
#output: xyzzy\n |
|||
*/ |
|||
|
|||
#include "sig7.c" |
|||
@ -0,0 +1,8 @@ |
|||
/* As the included file, but specifying silent ENOSYS.
|
|||
#notarget: cris*-*-elf |
|||
#sim: --cris-unknown-syscall=enosys-quiet |
|||
#output: ENOSYS\n |
|||
#output: xyzzy\n |
|||
*/ |
|||
|
|||
#include "sigreturn1.c" |
|||
@ -0,0 +1,9 @@ |
|||
/* As the included file, but specifying silent ENOSYS.
|
|||
#notarget: cris*-*-elf |
|||
#cc: additional_flags=-pthread |
|||
#sim: --cris-unknown-syscall=enosys-quiet |
|||
#output: ENOSYS\n |
|||
#output: xyzzy\n |
|||
*/ |
|||
|
|||
#include "sigreturn2.c" |
|||
@ -0,0 +1,9 @@ |
|||
/* As the included file, just actually specifying the default.
|
|||
#notarget: cris*-*-elf |
|||
#sim: --cris-unknown-syscall=stop |
|||
#xerror: |
|||
#output: Unimplemented syscall: 166 (0x1, 0x2, 0x3, 0x4, 0x5, 0x6)\n |
|||
#output: program stopped with signal 4.\n |
|||
*/ |
|||
|
|||
#include "syscall1.c" |
|||
@ -0,0 +1,9 @@ |
|||
/* As the included file, just actually specifying the default.
|
|||
#notarget: cris*-*-elf |
|||
#sim: --cris-unknown-syscall=stop |
|||
#xerror: |
|||
#output: Unimplemented syscall: 0 (0x3, 0x2, 0x1, 0x4, 0x6, 0x5)\n |
|||
#output: program stopped with signal 4.\n |
|||
*/ |
|||
|
|||
#include "syscall2.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" |
|||
@ -0,0 +1,9 @@ |
|||
/* As the included file, but specifying ENOSYS with message.
|
|||
#notarget: cris*-*-elf |
|||
#sim: --cris-unknown-syscall=enosys |
|||
#output: Unimplemented syscall: 0 (0x3, 0x2, 0x1, 0x4, 0x6, 0x5)\n |
|||
#output: ENOSYS\n |
|||
#output: xyzzy\n |
|||
*/ |
|||
|
|||
#include "syscall2.c" |
|||
@ -0,0 +1,8 @@ |
|||
/* As the included file, but specifying silent ENOSYS.
|
|||
#notarget: cris*-*-elf |
|||
#sim: --cris-unknown-syscall=enosys-quiet |
|||
#output: ENOSYS\n |
|||
#output: xyzzy\n |
|||
*/ |
|||
|
|||
#include "syscall1.c" |
|||
@ -0,0 +1,8 @@ |
|||
/* As the included file, but specifying silent ENOSYS.
|
|||
#notarget: cris*-*-elf |
|||
#sim: --cris-unknown-syscall=enosys-quiet |
|||
#output: ENOSYS\n |
|||
#output: xyzzy\n |
|||
*/ |
|||
|
|||
#include "syscall2.c" |
|||
@ -0,0 +1,8 @@ |
|||
/* As the included file, but specifying silent ENOSYS.
|
|||
#notarget: cris*-*-elf |
|||
#sim: --cris-unknown-syscall=enosys-quiet |
|||
#output: ENOSYS\n |
|||
#output: xyzzy\n |
|||
*/ |
|||
|
|||
#include "sysctl2.c" |
|||
Loading…
Reference in new issue