mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +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.
22 lines
531 B
C
22 lines
531 B
C
/* Check that TRT happens for an ignored catchable signal, single thread.
|
|
#xerror:
|
|
#output: Unimplemented signal: 14\n
|
|
#output: program stopped with signal 4 (*).\n
|
|
|
|
Sure, it'd probably be better to support signals in single-thread too,
|
|
but that's on an as-need basis, and I don't have a need for it yet. */
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <sys/types.h>
|
|
#include <signal.h>
|
|
#include <unistd.h>
|
|
|
|
int main (void)
|
|
{
|
|
signal (SIGALRM, SIG_IGN);
|
|
kill (getpid (), SIGALRM);
|
|
printf ("xyzzy\n");
|
|
exit (0);
|
|
}
|