aboutsummaryrefslogtreecommitdiff
path: root/rt
diff options
context:
space:
mode:
Diffstat (limited to 'rt')
-rw-r--r--rt/tst-timer2.c5
-rw-r--r--rt/tst-timer4.c10
2 files changed, 9 insertions, 6 deletions
diff --git a/rt/tst-timer2.c b/rt/tst-timer2.c
index 74ccc49..60026c1 100644
--- a/rt/tst-timer2.c
+++ b/rt/tst-timer2.c
@@ -40,7 +40,10 @@ do_test (void)
printf ("cnt = %d\n", i);
if (timer_create (CLOCK_REALTIME, &sigev, &timerId) < 0)
- perror ("timer_create");
+ {
+ perror ("timer_create");
+ continue;
+ }
res = timer_settime (timerId, 0, &itval, NULL);
if (res < 0)
diff --git a/rt/tst-timer4.c b/rt/tst-timer4.c
index 2175211..bc5d14e 100644
--- a/rt/tst-timer4.c
+++ b/rt/tst-timer4.c
@@ -206,7 +206,7 @@ do_test (void)
if (timer_create (CLOCK_REALTIME, &ev, &timer_none) != 0)
{
printf ("*** timer_create for timer_none failed: %m\n");
- result = 1;
+ return 1;
}
struct sigaction sa = { .sa_sigaction = sig1_handler,
@@ -223,7 +223,7 @@ do_test (void)
if (timer_create (CLOCK_REALTIME, &ev, &timer_sig1) != 0)
{
printf ("*** timer_create for timer_sig1 failed: %m\n");
- result = 1;
+ return 1;
}
memset (&ev, 0x33, sizeof (ev));
@@ -233,7 +233,7 @@ do_test (void)
if (timer_create (CLOCK_REALTIME, &ev, &timer_sig2) != 0)
{
printf ("*** timer_create for timer_sig2 failed: %m\n");
- result = 1;
+ return 1;
}
memset (&ev, 0x44, sizeof (ev));
@@ -244,7 +244,7 @@ do_test (void)
if (timer_create (CLOCK_REALTIME, &ev, &timer_thr1) != 0)
{
printf ("*** timer_create for timer_thr1 failed: %m\n");
- result = 1;
+ return 1;
}
pthread_attr_t nattr;
@@ -263,7 +263,7 @@ do_test (void)
if (timer_create (CLOCK_REALTIME, &ev, &timer_thr2) != 0)
{
printf ("*** timer_create for timer_thr2 failed: %m\n");
- result = 1;
+ return 1;
}
int ret = timer_getoverrun (timer_thr1);