diff options
author | Roland McGrath <roland@gnu.org> | 2004-08-11 23:32:56 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2004-08-11 23:32:56 +0000 |
commit | 0569cbbc02bee37c3d0f69f41a254697c68a6d61 (patch) | |
tree | c28b32a311b1f6e9534e3afe021fca48ceed1500 /rt/tst-timer4.c | |
parent | 90595fb635047061f7bcb6be99b00a9f33d057b1 (diff) | |
download | glibc-0569cbbc02bee37c3d0f69f41a254697c68a6d61.tar.gz glibc-0569cbbc02bee37c3d0f69f41a254697c68a6d61.tar.xz glibc-0569cbbc02bee37c3d0f69f41a254697c68a6d61.zip |
* rt/tst-timer2.c (do_test): If timer_create fails, just continue.
* rt/tst-timer4.c (do_test): If one of the timer_create calls fails, return 1 immediately.
Diffstat (limited to 'rt/tst-timer4.c')
-rw-r--r-- | rt/tst-timer4.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rt/tst-timer4.c b/rt/tst-timer4.c index 2175211cb6..bc5d14e5b7 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); |