[LTP] LTP release
Li Wang
liwang@redhat.com
Thu Sep 10 09:19:19 CEST 2020
On Wed, Sep 9, 2020 at 9:26 PM Cyril Hrubis <chrubis@suse.cz> wrote:
> Hi!
> > Also I would like to get rid of the -fno-optimize-sibling-calls in the
> > Makefile, this makes the test a bit fragile and less portable.
>
I'm not very sure, let me think/check a while.
> /*
> * Returns negative number if stack grows down, possitive if stack grows up
> */
> static int stack_dir(void)
> {
> intptr_t addr = addr_func();
>
> printf("%p %p\n", &addr, (void*)addr);
>
This method may be doable, but the second %p print (nil), I don't why.
# ./test
0x3ffe70feb48 (nil)
418387128
--
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20200910/9cc9af0d/attachment.htm>
More information about the ltp
mailing list