]> sourceware.org Git - glibc.git/commitdiff
htl: Enable tst-cancel25 test
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 23 Jun 2020 22:00:53 +0000 (22:00 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 23 Jun 2020 22:02:31 +0000 (00:02 +0200)
* nptl/tst-cancel25.c: Move to...
* sysdeps/pthread/tst-cancel25.c: ... here.
(tf2) Do not test for SIGCANCEL when it is not defined.
* nptl/Makefile: Move corresponding reference to...
* sysdeps/pthread/Makefile: ... here.

nptl/Makefile
sysdeps/pthread/Makefile
sysdeps/pthread/tst-cancel25.c [moved from nptl/tst-cancel25.c with 99% similarity]

index 60483c1ec43b3717b420a1e3c3535f1fb8accbd6..24ebd07a30171abcf5e431617acdb75503a3cc53 100644 (file)
@@ -307,7 +307,7 @@ tests-container =  tst-pthread-getattr
 tests-internal := tst-robustpi8 tst-rwlock19 tst-rwlock20 \
                  tst-sem11 tst-sem12 tst-sem13 \
                  tst-barrier5 tst-signal7 tst-mutex8 tst-mutex8-static \
-                 tst-mutexpi8 tst-mutexpi8-static tst-cancel25 \
+                 tst-mutexpi8 tst-mutexpi8-static \
                  tst-setgetname \
 
 xtests = tst-setuid1 tst-setuid1-static tst-setuid2 \
index c9ba6f8f125a577a14fea2bd3ce05401aa79666a..01602e69d5cd8623fba06b7b79b703c92b74c711 100644 (file)
@@ -214,7 +214,7 @@ generated += tst-atfork2.mtrace
 generated += $(objpfx)tst-atfork2.mtrace \
             $(addsuffix .so,$(strip $(modules-names)))
 
-tests-internal += tst-robust8
+tests-internal += tst-cancel25 tst-robust8
 
 tests += tst-oncex3 tst-oncex4
 
similarity index 99%
rename from nptl/tst-cancel25.c
rename to sysdeps/pthread/tst-cancel25.c
index c6e1c23c02bed64de8418e22357498fc024b8fe0..0b3a82b80403202f75d6eea29c9ba1ac3b0cfeb2 100644 (file)
@@ -18,11 +18,13 @@ tf2 (void *arg)
       puts ("pthread_sigmask failed");
       exit (1);
     }
+#ifdef SIGCANCEL
   if (sigismember (&mask, SIGCANCEL))
     {
       puts ("SIGCANCEL blocked in new thread");
       exit (1);
     }
+#endif
 
   /* Sync with the main thread so that we do not test anything else.  */
   int e = pthread_barrier_wait (&b);
This page took 0.041351 seconds and 5 git commands to generate.