drd/tests/swapcontext: Improve the portability of this test further
commitcaf05d5ca94155c793641b9f32bb6be8b9a77448
authorBart Van Assche <bvanassche@acm.org>
Tue, 23 Feb 2021 19:49:14 +0000 (23 11:49 -0800)
committerBart Van Assche <bvanassche@acm.org>
Tue, 23 Feb 2021 19:49:14 +0000 (23 11:49 -0800)
tree3fcad57cc10372864716cb4f8d58d2cc4821e007
parentea98cccb4d50a8740708507c4c72cfb1e6c88e38
drd/tests/swapcontext: Improve the portability of this test further

- Remove the VALGRIND_STACK_REGISTER() invocation for the initial thread
  stack since it is superfluous. Remove the pthread_attr_getstack() call
  that became superfluous by this change.
- Change SIGINT into SIGALRM for FreeBSD since pthread_kill(..., SIGINT)
  causes the application to return a SIGINT status.
- Reduce the stack size of the threads created by this test.
drd/tests/swapcontext.c
drd/tests/swapcontext.stderr.exp