[PATCH] take3: fix tst-pthread-getattr test case
Siddhesh Poyarekar
siddhesh@redhat.com
Sat Jul 28 02:48:00 GMT 2012
Updated patch with fixes to your suggestions. I have removed the return
value check for sysconf. I have also updated siddhesh/getattr branch
for David's test.
Thanks,
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: 4772 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120728/3b55b019/attachment.bin>
More information about the Libc-alpha
mailing list