]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make that damn 'inherit' test stop failing, even if Helgrind isn't doing the
authorNicholas Nethercote <n.nethercote@gmail.com>
Fri, 16 Apr 2004 07:22:42 +0000 (07:22 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Fri, 16 Apr 2004 07:22:42 +0000 (07:22 +0000)
right thing.

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

helgrind/tests/inherit.c
helgrind/tests/inherit.stderr.exp

index 8f10da60f3221bf9db00829caa4910d66b71f643..700ec4f5cb31f8a7659f8b648191ba181ba17e72 100644 (file)
@@ -1,5 +1,11 @@
 /* test child thread inheriting data */
 
+// ***
+//
+// Helgrind should detect an error on line 48 for this test, but it doesn't!
+//
+// ***
+
 #include <pthread.h>
 #include <unistd.h>
 
@@ -8,24 +14,18 @@ static volatile int shared[2];
 static void *t1(void *v)
 {
        volatile int *ip = (int *)v;
-
        *ip += 44;
        *ip *= 2;
-
        sleep(1);
-
        return 0;
 }
 
 static void *t2(void *v)
 {
        volatile int *ip = (int *)v;
-
        *ip += 88;
        *ip *= 3;
-
        sleep(2);
-
        return 0;
 }
 
index 7db13b3d1a57397ec5b3c8b07451a753e13f073c..139597f9cb07c5d48bed18984ec4747f4b4f3438 100644 (file)
@@ -1 +1,2 @@
-XXX We expect an error on inherit.c:48
+
+