]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add some alternate test results for glibc 2.2.5 systems.
authorTom Hughes <tom@compton.nu>
Sun, 31 Oct 2004 11:31:16 +0000 (11:31 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 31 Oct 2004 11:31:16 +0000 (11:31 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2882

addrcheck/tests/toobig-allocs.stderr.exp2 [new file with mode: 0644]
memcheck/tests/badjump.stderr.exp2 [new file with mode: 0644]
memcheck/tests/brk.stderr.exp2 [new file with mode: 0644]
memcheck/tests/brk2.stderr.exp2 [new file with mode: 0644]
memcheck/tests/error_counts.c
memcheck/tests/toobig-allocs.stderr.exp2 [new file with mode: 0644]
memcheck/tests/writev.stderr.exp3 [new file with mode: 0644]

diff --git a/addrcheck/tests/toobig-allocs.stderr.exp2 b/addrcheck/tests/toobig-allocs.stderr.exp2
new file mode 100644 (file)
index 0000000..c2b9244
--- /dev/null
@@ -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 (file)
index 0000000..4667bf7
--- /dev/null
@@ -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 (file)
index 0000000..4944bba
--- /dev/null
@@ -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 (file)
index 0000000..4944bba
--- /dev/null
@@ -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
index 2cf1060b3d796f10dc87f50a9ef308314b27eb91..819798754a1cb9855f664180c1d889c3779faff4 100644 (file)
@@ -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 (file)
index 0000000..c2b9244
--- /dev/null
@@ -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 (file)
index 0000000..b241699
--- /dev/null
@@ -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