[PATCH] librt: add test (bug 28213)
Siddhesh Poyarekar
siddhesh@gotplt.org
Fri Aug 13 03:47:38 GMT 2021
On 8/13/21 8:58 AM, Никита Попов wrote:
> Hello. I have some concerns about the recent commit
> 4cc79c217744743077bf7a0ec5e0a4318f1e6641. In rt/tst-bz28213.c we use
> one call to pause (). Should it return for some reason 'return 0' from
> do_test () follows. Maybe it is better to wrap pause () call here into
> an infinite loop like this? [while (1) pause ();] Then we can be sure
> that the only success in this test can be reached via exit (0) from
> the callback function.
The only way pause() can return is through a signal handler. The only
signal we handle in this test is SIGALRM (in the test driver for test
timeout) and it results in a test failure. All other signals will
result in immediate process termination, which will also result in a
test failure.
Siddhesh
More information about the Libc-alpha
mailing list