mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
tests: mv tests/* -> tests/tcg
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
a0f426109e
commit
c09015dd04
227 changed files with 5 additions and 5 deletions
26
tests/tcg/cris/check_sigalrm.c
Normal file
26
tests/tcg/cris/check_sigalrm.c
Normal file
|
@ -0,0 +1,26 @@
|
|||
#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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue