aboutsummaryrefslogtreecommitdiff
path: root/nss/Makefile
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@redhat.com>2016-12-23 13:39:23 -0500
committerCarlos O'Donell <carlos@redhat.com>2016-12-23 13:39:23 -0500
commitb0a679f4fd5363809a972b697e8a0b1fc66fcbb1 (patch)
treeb3eea6e55fe0b506f8a4754be252f92d582d69c9 /nss/Makefile
parent57707b7fcc38855869321f8c7827bfe21d729f37 (diff)
downloadglibc-b0a679f4fd5363809a972b697e8a0b1fc66fcbb1.zip
glibc-b0a679f4fd5363809a972b697e8a0b1fc66fcbb1.tar.gz
glibc-b0a679f4fd5363809a972b697e8a0b1fc66fcbb1.tar.bz2
Add deferred cancellation regression test for getpwuid_r.
The fix in commit 312be3f9f5eab1643d7dcc7728c76d413d4f2640 resolved several cancellation issues in several APIs. This regression test is designed to double check that at least getpwuid_r remainds correctly implemented and does not provide additional unintended cancellation points that may leave locks in an inconsistent state.
Diffstat (limited to 'nss/Makefile')
-rw-r--r--nss/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/nss/Makefile b/nss/Makefile
index 1f016d9..9132e17 100644
--- a/nss/Makefile
+++ b/nss/Makefile
@@ -54,6 +54,12 @@ tests = test-netdb tst-nss-test1 test-digits-dots \
$(tests-static)
xtests = bug-erange
+# If we have a thread library then we can test cancellation against
+# some routines like getpwuid_r.
+ifeq (yes,$(have-thread-library))
+tests += tst-cancel-getpwuid_r
+endif
+
# Specify rules for the nss_* modules. We have some services.
services := files db
@@ -125,3 +131,7 @@ $(objpfx)/libnss_test1.so$(libnss_test1.so-version): $(objpfx)/libnss_test1.so
$(make-link)
endif
$(objpfx)tst-nss-test1.out: $(objpfx)/libnss_test1.so$(libnss_test1.so-version)
+
+ifeq (yes,$(have-thread-library))
+$(objpfx)tst-cancel-getpwuid_r: $(shared-thread-library)
+endif