[PATCH 2/3] tests: unify fortification handler logic

Ondřej Bílka neleai@seznam.cz
Tue Jan 7 11:16:00 GMT 2014


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.



More information about the Libc-alpha mailing list