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]

Re: [PATCH] Remove Linuxism from tst-tls-atexit


> EXPECTED_SIGNAL makes SIGSEGV OK for the entire test case and we don't
> want that.  The dlclose inside the thread function LOAD for example
> will cause a segfault in __tls_call_dtors if it incorrectly unloads
> the DSO.

Hmm.  Perhaps there is too much being tested in this one test, then?
One of the things on my list is to clean up the various test cases that
rely on signal handling when they are not testing something related to
signal handling.  It makes those tests unusable on non-POSIX
configurations (i.e. currently only NaCl) that do not support signals.
So adding another such case is kind of going backwards.  In this case,
going from gratuitous Linuxism to just thorough POSIXism is still an
incremental improvement (it should fix it for Hurd, e.g.).  So that is
fine for now if it really is unavoidably much harder to write a good
test without catching a signal.  But still not ideal.


Thanks,
Roland


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