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 <br...@clisp.org> > > 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 ;-)