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 2/3] tests: unify fortification handler logic


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.


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