diff options
Diffstat (limited to 'qemu/tests/tcg/cris/check_sigalrm.c')
-rw-r--r-- | qemu/tests/tcg/cris/check_sigalrm.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/qemu/tests/tcg/cris/check_sigalrm.c b/qemu/tests/tcg/cris/check_sigalrm.c deleted file mode 100644 index 39fa8d9ba..000000000 --- a/qemu/tests/tcg/cris/check_sigalrm.c +++ /dev/null @@ -1,26 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> -#include <signal.h> -#include <unistd.h> - -#define MAGIC (0xdeadbeef) - -int s = 0; -void sighandler(int sig) -{ - s = MAGIC; -} - -int main(int argc, char **argv) -{ - int p; - - p = getpid(); - signal(SIGALRM, sighandler); - kill(p, SIGALRM); - if (s != MAGIC) - return EXIT_FAILURE; - - printf ("passed\n"); - return EXIT_SUCCESS; -} |