[PATCH] take3: fix tst-pthread-getattr test case

Siddhesh Poyarekar siddhesh@redhat.com
Fri Jul 27 18:43:00 GMT 2012


Hi,

Here's an updated version of the patch to fix tst-pthread-getattr with
Roland's review comments incorporated. I have also pushed this into
siddhesh/getattr for David to test on sparc.

Regards,
Siddhesh

nptl/ChangeLog:

2012-07-27  Siddhesh Poyarekar  <siddhesh@redhat.com>

	* tst-pthread-getattr.c (MAX_STACK_SIZE): New macro.
	(_MIN): New macro function.
	(pagesize): New static variable.
	(allocate_and_test): Return MEM.  Rename parameter to TARGET.
	(check_stack_top): New local variable MEM.  Cap stack size
	to MAX_STACK_SIZE using _MIN.  Call allocate_and_test for
	halfway up the stack top page.  Verify that the top page was
	written into.
	(do_test): Get pagesize using sysconf.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pthread-test-fix.patch
Type: text/x-patch
Size: 4856 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120727/f7fb9c59/attachment.bin>


More information about the Libc-alpha mailing list