This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Where to put Linux-specific pthread test?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]