* 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.
2012-02-04 Bruno Haible <bruno@clisp.org>
2012-02-04 Bruno Haible <bruno@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.
+
+2012-02-04 Bruno Haible <bruno@clisp.org>
+
stdioext: Fix last commit.
* lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
stdioext: Fix last commit.
* lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
+void *memchunk1;
+void *memchunk2;
+
value1 = get_rusage_as ();
value1 = get_rusage_as ();
+ memchunk1 = malloc (0x88);
value2 = get_rusage_as ();
value2 = get_rusage_as ();
+ memchunk2 = malloc (0x281237);
value3 = get_rusage_as ();
value3 = get_rusage_as ();
+void *memchunk1;
+void *memchunk2;
+
value1 = get_rusage_data ();
value1 = get_rusage_data ();
+ memchunk1 = malloc (0x88);
value2 = get_rusage_data ();
value2 = get_rusage_data ();
+ memchunk2 = malloc (0x281237);
value3 = get_rusage_data ();
value3 = get_rusage_data ();