This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Remove Linuxism from tst-tls-atexit
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "Siddhesh Poyarekar" <siddhesh at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 14 Jul 2015 12:40:25 -0700 (PDT)
- Subject: Re: [PATCH] Remove Linuxism from tst-tls-atexit
- Authentication-results: sourceware.org; auth=none
- References: <1436883383-6903-1-git-send-email-siddhesh at redhat dot com>
> The tst-tls-atexit test case searches for its module in /proc/PID/maps
> to verify that it is unloaded, which is a Linux-specific test. This
> patch makes the test generic by trying to call foo (the symbol
> obtained from dlsym) and traps SIGSEGV momentarily to see if the crash
> occurred.
Is there a reason to catch it instead of just setting EXPECTED_SIGNAL?