From: Nicholas Nethercote Date: Wed, 24 Jun 2009 05:01:41 +0000 (+0000) Subject: Suppress a Cond error in pthread_rwlock_init(). Fixes bug 196528. X-Git-Tag: svn/VALGRIND_3_5_0~476 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=94cf8ddabe70869132c546fdcff8963655b18d70;p=thirdparty%2Fvalgrind.git Suppress a Cond error in pthread_rwlock_init(). Fixes bug 196528. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10370 --- diff --git a/darwin9.supp b/darwin9.supp index 8b529b3927..c397019b29 100644 --- a/darwin9.supp +++ b/darwin9.supp @@ -89,6 +89,13 @@ obj:/System/Library/Frameworks/OpenGL* } +{ + macos-Cond-6 + Memcheck:Cond + fun:pthread_rwlock_init$UNIX2003 + fun:main +} + { futimes-1 Memcheck:Param diff --git a/memcheck/tests/darwin/Makefile.am b/memcheck/tests/darwin/Makefile.am index c1cef03a8d..8cc9f29ef9 100644 --- a/memcheck/tests/darwin/Makefile.am +++ b/memcheck/tests/darwin/Makefile.am @@ -6,12 +6,14 @@ dist_noinst_SCRIPTS = filter_stderr noinst_HEADERS = scalar.h EXTRA_DIST = \ + pth-supp.stderr.exp pth-supp.vgtest \ scalar.stderr.exp scalar.vgtest \ scalar_fork.stderr.exp scalar_fork.vgtest \ scalar_nocancel.stderr.exp scalar_nocancel.vgtest \ scalar_vfork.stderr.exp scalar_vfork.vgtest check_PROGRAMS = \ + pth-supp \ scalar \ scalar_fork \ scalar_nocancel \ diff --git a/memcheck/tests/darwin/pth-supp.c b/memcheck/tests/darwin/pth-supp.c new file mode 100644 index 0000000000..ce24f7681b --- /dev/null +++ b/memcheck/tests/darwin/pth-supp.c @@ -0,0 +1,9 @@ +// This requires a suppression (macos-Cond-6). Bug 196528. + +#include + +int main() { + pthread_rwlock_t mutex; + pthread_rwlock_init(&mutex, NULL); + return 0; +} diff --git a/memcheck/tests/darwin/pth-supp.stderr.exp b/memcheck/tests/darwin/pth-supp.stderr.exp new file mode 100644 index 0000000000..e69de29bb2 diff --git a/memcheck/tests/darwin/pth-supp.vgtest b/memcheck/tests/darwin/pth-supp.vgtest new file mode 100644 index 0000000000..f430b5e91b --- /dev/null +++ b/memcheck/tests/darwin/pth-supp.vgtest @@ -0,0 +1,2 @@ +prog: pth-supp +vgopts: -q