From: Tom Hughes Date: Sun, 31 Oct 2004 11:31:16 +0000 (+0000) Subject: Add some alternate test results for glibc 2.2.5 systems. X-Git-Tag: svn/VALGRIND_3_0_0~1423 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f26e2b482f0efb675480f8743dd5e525785843cc;p=thirdparty%2Fvalgrind.git Add some alternate test results for glibc 2.2.5 systems. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2882 --- diff --git a/addrcheck/tests/toobig-allocs.stderr.exp2 b/addrcheck/tests/toobig-allocs.stderr.exp2 new file mode 100644 index 0000000000..c2b92446d1 --- /dev/null +++ b/addrcheck/tests/toobig-allocs.stderr.exp2 @@ -0,0 +1,9 @@ + +Attempting too-big malloc()... +Attempting too-big mmap()... + +ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) +malloc/free: in use at exit: 0 bytes in 0 blocks. +malloc/free: 2 allocs, 1 frees, 2145386520 bytes allocated. +For a detailed leak analysis, rerun with: --leak-check=yes +For counts of detected errors, rerun with: -v diff --git a/memcheck/tests/badjump.stderr.exp2 b/memcheck/tests/badjump.stderr.exp2 new file mode 100644 index 0000000000..4667bf7aee --- /dev/null +++ b/memcheck/tests/badjump.stderr.exp2 @@ -0,0 +1,18 @@ + +Jump to the invalid address stated on the next line + at 0x........: ??? + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Process terminating with default action of signal 11 (SIGSEGV) + Access not within mapped region at address 0x........ + at 0x........: ??? + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) +malloc/free: in use at exit: 24 bytes in 1 blocks. +malloc/free: 1 allocs, 0 frees, 24 bytes allocated. +For a detailed leak analysis, rerun with: --leak-check=yes +For counts of detected errors, rerun with: -v diff --git a/memcheck/tests/brk.stderr.exp2 b/memcheck/tests/brk.stderr.exp2 new file mode 100644 index 0000000000..4944bba7f6 --- /dev/null +++ b/memcheck/tests/brk.stderr.exp2 @@ -0,0 +1,7 @@ + + +ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) +malloc/free: in use at exit: 0 bytes in 0 blocks. +malloc/free: 1 allocs, 1 frees, 24 bytes allocated. +For a detailed leak analysis, rerun with: --leak-check=yes +For counts of detected errors, rerun with: -v diff --git a/memcheck/tests/brk2.stderr.exp2 b/memcheck/tests/brk2.stderr.exp2 new file mode 100644 index 0000000000..4944bba7f6 --- /dev/null +++ b/memcheck/tests/brk2.stderr.exp2 @@ -0,0 +1,7 @@ + + +ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) +malloc/free: in use at exit: 0 bytes in 0 blocks. +malloc/free: 1 allocs, 1 frees, 24 bytes allocated. +For a detailed leak analysis, rerun with: --leak-check=yes +For counts of detected errors, rerun with: -v diff --git a/memcheck/tests/error_counts.c b/memcheck/tests/error_counts.c index 2cf1060b3d..819798754a 100644 --- a/memcheck/tests/error_counts.c +++ b/memcheck/tests/error_counts.c @@ -43,7 +43,7 @@ int main(void) VALGRIND_DO_LEAK_CHECK; VALGRIND_DO_LEAK_CHECK; VALGRIND_COUNT_LEAKS(n_leaked, n_dubious, n_reachable, n_suppressed); - if (n_reachable == 147) n_reachable = 99; /* handle glibc differences */ + if (n_reachable == 123) n_reachable = 99; /* handle glibc differences */ printf("leaks: %dB, %dB, %dB, %dB\n", n_leaked, n_dubious, n_reachable, n_suppressed); diff --git a/memcheck/tests/toobig-allocs.stderr.exp2 b/memcheck/tests/toobig-allocs.stderr.exp2 new file mode 100644 index 0000000000..c2b92446d1 --- /dev/null +++ b/memcheck/tests/toobig-allocs.stderr.exp2 @@ -0,0 +1,9 @@ + +Attempting too-big malloc()... +Attempting too-big mmap()... + +ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) +malloc/free: in use at exit: 0 bytes in 0 blocks. +malloc/free: 2 allocs, 1 frees, 2145386520 bytes allocated. +For a detailed leak analysis, rerun with: --leak-check=yes +For counts of detected errors, rerun with: -v diff --git a/memcheck/tests/writev.stderr.exp3 b/memcheck/tests/writev.stderr.exp3 new file mode 100644 index 0000000000..b2416995b3 --- /dev/null +++ b/memcheck/tests/writev.stderr.exp3 @@ -0,0 +1,25 @@ + +Test file created. +Syscall param writev(vector[...]) contains uninitialised or unaddressable byte(s) + at 0x........: writev (in /...libc...) + by 0x........: main (writev.c:56) + Address 0x........ is not stack'd, malloc'd or (recently) free'd +Received EFAULT as expected + +Syscall param writev(vector) contains uninitialised or unaddressable byte(s) + at 0x........: writev (in /...libc...) + by 0x........: main (writev.c:68) + Address 0x........ is not stack'd, malloc'd or (recently) free'd +Received EINVAL as expected + +Syscall param readv(vector) contains uninitialised or unaddressable byte(s) + at 0x........: readv (in /...libc...) + by 0x........: main (writev.c:76) + Address 0x........ is not stack'd, malloc'd or (recently) free'd +Received EINVAL as expected + +ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0) +malloc/free: in use at exit: 0 bytes in 0 blocks. +malloc/free: 1 allocs, 1 frees, 24 bytes allocated. +For a detailed leak analysis, rerun with: --leak-check=yes +For counts of detected errors, rerun with: -v