This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Where to put Linux-specific pthread test?
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Sat, 19 Oct 2013 00:39:45 -0400
- Subject: Where to put Linux-specific pthread test?
- Authentication-results: sourceware.org; auth=none
Team,
I have a new regression test for pthread_setname and
pthread_getname that I wanted to add to the nptl testsuite.
The regression test is Linux-specific because it does all
the validation using /proc.
Sticking it into nptl/ doesn't seem quite right since it's
Linux-specific.
I figure the right place is nptl/sysdeps/unix/sysv/linux/?
And then get added as a test only if subdir is nptl?
e.g.
diff --git a/nptl/sysdeps/unix/sysv/linux/Makefile b/nptl/sysdeps/unix/sysv/linux/Makefile
index 6078e2d..9e0df98 100644
--- a/nptl/sysdeps/unix/sysv/linux/Makefile
+++ b/nptl/sysdeps/unix/sysv/linux/Makefile
@@ -26,6 +26,7 @@ gen-as-const-headers += lowlevelcond.sym lowlevelrwlock.sym \
lowlevelbarrier.sym unwindbuf.sym \
lowlevelrobustlock.sym pthread-pi-defines.sym \
structsem.sym
+tests += tst-setgetname
endif
ifeq ($(subdir),posix)
---
Cheers,
Carlos.