pthread: Move basic tests from nptl to sysdeps/pthread

So they can be checked with htl too.
This commit is contained in:
Samuel Thibault 2020-02-09 16:12:35 +00:00
parent 19a64d9f6e
commit cca76b6db2
9 changed files with 8 additions and 3 deletions

View File

@ -262,8 +262,6 @@ tests = tst-attr1 tst-attr2 tst-attr3 tst-default-attr \
tst-sem15 tst-sem16 tst-sem17 \
tst-barrier1 tst-barrier2 tst-barrier3 tst-barrier4 \
tst-align tst-align3 \
tst-basic1 tst-basic2 tst-basic3 tst-basic4 tst-basic5 tst-basic6 \
tst-basic7 \
tst-kill1 tst-kill2 tst-kill3 tst-kill4 tst-kill5 tst-kill6 \
tst-raise1 \
tst-join1 tst-join2 tst-join3 tst-join4 tst-join5 tst-join6 tst-join7 \

View File

@ -41,5 +41,8 @@ libpthread-routines += thrd_create thrd_detach thrd_exit thrd_join \
tests += tst-cnd-basic tst-mtx-trylock tst-cnd-broadcast \
tst-cnd-timedwait tst-thrd-detach tst-mtx-basic tst-thrd-sleep \
tst-mtx-recursive tst-tss-basic tst-call-once tst-mtx-timedlock
tst-mtx-recursive tst-tss-basic tst-call-once tst-mtx-timedlock \
tst-basic1 tst-basic2 tst-basic3 tst-basic4 tst-basic5 tst-basic6 \
tst-basic7 \
endif

View File

@ -55,7 +55,11 @@ do_test (void)
pthread_t tid;
/* Allocate the memory needed for the stack. */
#ifdef PTHREAD_STACK_MIN
use_stack_ptr (PTHREAD_STACK_MIN);
#else
use_stack_ptr (4 * getpagesize ());
#endif
use_up_memory ();