This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 2/3] tests: unify fortification handler logic
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 7 Jan 2014 12:16:24 +0100
- Subject: Re: [PATCH 2/3] tests: unify fortification handler logic
- Authentication-results: sourceware.org; auth=none
- References: <1388359563-12505-1-git-send-email-vapier at gentoo dot org> <1388359563-12505-2-git-send-email-vapier at gentoo dot org>
On Sun, Dec 29, 2013 at 06:26:02PM -0500, Mike Frysinger wrote:
> We have multiple tests that copy & paste the same logic for disabling the
> fortification output. Let's unify this in the test-skeleton instead.
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
>
> 2013-12-29 Mike Frysinger <vapier@gentoo.org>
>
> * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
> (test_main): Replace code with set_fortify_handler call.
> * debug/test-strcpy_chk.c: Likewise.
> * debug/tst-chk1.c: Likewise.
> * debug/tst-longjmp_chk.c: Likewise.
> * test-skeleton.c: Include fcntl.h & paths.h
> (set_fortify_handler): Define.
Also ok, this code needed to be deduplicated.