bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-idutils] [PATCH 1/9] tests: disable gnulib's get-rusage-as test


From: Jim Meyering
Subject: Re: [bug-idutils] [PATCH 1/9] tests: disable gnulib's get-rusage-as test
Date: Sat, 04 Feb 2012 13:05:36 +0100

Bruno Haible wrote:

> Hi Jim,
>
>> setrlimit(RLIMIT_AS, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
>> getrlimit(RLIMIT_AS, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
>
> No brk() calls. It looks really like GCC has optimized out the two malloc()
> calls. And indeed, with a recent GCC 4.7 snapshot I reproduce the problem.
>
> A workaround would be to use -fno-builtin-malloc. But I can just as well
> disable the optimization in the test:
>
>
> 2012-02-04  Bruno Haible  <address@hidden>
>
>       get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
>       * tests/test-get-rusage-as.c (main): Assign the malloc() results to
>       global variables.
>       * tests/test-get-rusage-data.c (main): Likewise.
>       Reported by Jim Meyering.

Nice!  Thanks for investigating and fixing that.
I've undone the exclusion in idutils.
And thanks to Claudio for keeping me honest ;-)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]