mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
1368b914e9
Now that all port tests live under testsuite/sim/*/, and none live in testsuite/ directly, flatten the structure by moving all of the dirs under testsuite/sim/ to testsuite/ directly. We need to stop passing --tool to dejagnu so that it searches all dirs and not just ones that start with "sim". Since we have no other dirs in this tree, and no plans to add any, should be fine.
23 lines
525 B
C
23 lines
525 B
C
/* Test unknown-syscall output.
|
|
#notarget: cris*-*-elf
|
|
#xerror:
|
|
#output: Unimplemented syscall: 166 (0x1, 0x2, 0x3, 0x4, 0x5, 0x6)\n
|
|
#output: program stopped with signal 4 (*).\n
|
|
*/
|
|
|
|
#include <unistd.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <errno.h>
|
|
|
|
int main (void)
|
|
{
|
|
/* The number 166 is chosen because there's a gap for that number in
|
|
the CRIS asm/unistd.h. */
|
|
int err = syscall (166, 1, 2, 3, 4, 5, 6);
|
|
if (err == -1 && errno == ENOSYS)
|
|
printf ("ENOSYS\n");
|
|
printf ("xyzzy\n");
|
|
exit (0);
|
|
}
|