[PATCH] take3: fix tst-pthread-getattr test case
Siddhesh Poyarekar
siddhesh@redhat.com
Sat Jul 28 04:23:00 GMT 2012
On Fri, 27 Jul 2012 21:11:56 -0700 (PDT), David wrote:
> tst-pthread-getattr.c: In function 'check_stack_top':
> tst-pthread-getattr.c:115:3: warning: format '%zu' expects argument
> of type 'size_t', but argument 2 has type 'rlim_t' [-Wformat]
Thanks, fixed with this attached update of the patch. I wonder why I am
not seeing those warnings on my box.
Regards,
Siddhesh
nptl/ChangeLog:
2012-07-27 Siddhesh Poyarekar <siddhesh@redhat.com>
* tst-pthread-getattr.c (MAX_STACK_SIZE): New macro.
(pagesize): New static variable.
(allocate_and_test): Return MEM. Rename parameter to TARGET.
(check_stack_top): New local variables MEM and PAGEMASK. Cap
stack size to MAX_STACK_SIZE. 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: 4886 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120728/cc4833bf/attachment.bin>
More information about the Libc-alpha
mailing list