]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Suppress a Cond error in pthread_rwlock_init(). Fixes bug 196528.
authorNicholas Nethercote <njn@valgrind.org>
Wed, 24 Jun 2009 05:01:41 +0000 (05:01 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Wed, 24 Jun 2009 05:01:41 +0000 (05:01 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10370

darwin9.supp
memcheck/tests/darwin/Makefile.am
memcheck/tests/darwin/pth-supp.c [new file with mode: 0644]
memcheck/tests/darwin/pth-supp.stderr.exp [new file with mode: 0644]
memcheck/tests/darwin/pth-supp.vgtest [new file with mode: 0644]

index 8b529b3927dfa0846d32b6aabf936241d6dec0d8..c397019b2918c561b7ebe63c99ca963d730f576f 100644 (file)
    obj:/System/Library/Frameworks/OpenGL*
 }
 
+{
+   macos-Cond-6
+   Memcheck:Cond
+   fun:pthread_rwlock_init$UNIX2003
+   fun:main
+}
+
 {
    futimes-1
    Memcheck:Param
index c1cef03a8ddc0f914cad3204c14964d62e0c3c67..8cc9f29ef9b1b6f94d24bf16d762030882b76bc4 100644 (file)
@@ -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 (file)
index 0000000..ce24f76
--- /dev/null
@@ -0,0 +1,9 @@
+// This requires a suppression (macos-Cond-6).  Bug 196528.
+
+#include <pthread.h>
+
+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 (file)
index 0000000..e69de29
diff --git a/memcheck/tests/darwin/pth-supp.vgtest b/memcheck/tests/darwin/pth-supp.vgtest
new file mode 100644 (file)
index 0000000..f430b5e
--- /dev/null
@@ -0,0 +1,2 @@
+prog: pth-supp
+vgopts: -q