From: Julian Seward Date: Sun, 26 Jul 2009 21:36:24 +0000 (+0000) Subject: Add a new output file for tc12_rwl_trivial. It unfortunately can't be X-Git-Tag: svn/VALGRIND_3_5_0~221 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ef87b55990978a8c1845aebc287df7446107102;p=thirdparty%2Fvalgrind.git Add a new output file for tc12_rwl_trivial. It unfortunately can't be 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 --- diff --git a/helgrind/tests/Makefile.am b/helgrind/tests/Makefile.am index 2d5aa289ef..970e41744a 100644 --- a/helgrind/tests/Makefile.am +++ b/helgrind/tests/Makefile.am @@ -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 index 0000000000..a99b5068ed --- /dev/null +++ b/helgrind/tests/tc12_rwl_trivial.stderr.exp-darwin970 @@ -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)