]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add a new output file for tc12_rwl_trivial. It unfortunately can't be
authorJulian Seward <jseward@acm.org>
Sun, 26 Jul 2009 21:36:24 +0000 (21:36 +0000)
committerJulian Seward <jseward@acm.org>
Sun, 26 Jul 2009 21:36:24 +0000 (21:36 +0000)
the same as the glibc one, because glibc is broken in the sense that
it doesn't return an error code for an attempt to unlock a not-locked
rwlock, and the returned error code affects Helgrind's output.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10627

helgrind/tests/Makefile.am
helgrind/tests/tc12_rwl_trivial.stderr.exp-darwin970 [new file with mode: 0644]

index 2d5aa289efabd16f921447370117cdde360e4812..970e41744ae61214a835547ef7dab84059293e68 100644 (file)
@@ -42,6 +42,7 @@ EXTRA_DIST = \
        tc11_XCHG.vgtest tc11_XCHG.stdout.exp tc11_XCHG.stderr.exp \
        tc12_rwl_trivial.vgtest tc12_rwl_trivial.stdout.exp \
                tc12_rwl_trivial.stderr.exp \
+               tc12_rwl_trivial.stderr.exp-darwin970 \
        tc13_laog1.vgtest tc13_laog1.stdout.exp tc13_laog1.stderr.exp \
        tc14_laog_dinphils.vgtest tc14_laog_dinphils.stdout.exp \
                tc14_laog_dinphils.stderr.exp \
diff --git a/helgrind/tests/tc12_rwl_trivial.stderr.exp-darwin970 b/helgrind/tests/tc12_rwl_trivial.stderr.exp-darwin970
new file mode 100644 (file)
index 0000000..a99b506
--- /dev/null
@@ -0,0 +1,16 @@
+
+Thread #x is the program's root thread
+
+Thread #x unlocked a not-locked lock at 0x........
+   at 0x........: pthread_rwlock_unlock* (hg_intercepts.c:...)
+   by 0x........: main (tc12_rwl_trivial.c:35)
+  Lock at 0x........ was first observed
+   at 0x........: pthread_rwlock_init* (hg_intercepts.c:...)
+   by 0x........: main (tc12_rwl_trivial.c:24)
+
+Thread #x's call to pthread_rwlock_unlock failed
+   with error code 22 (EINVAL: Invalid argument)
+   at 0x........: pthread_rwlock_unlock* (hg_intercepts.c:...)
+   by 0x........: main (tc12_rwl_trivial.c:35)
+
+ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)