From: Julian Seward Date: Sun, 16 Nov 2008 21:59:29 +0000 (+0000) Subject: Make test 'tc21_pthonce' less scheduling-sensitive. X-Git-Tag: svn/VALGRIND_3_4_0~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=318bd7cf8b5f4d98a4a4d04de533c73d0c5be718;p=thirdparty%2Fvalgrind.git Make test 'tc21_pthonce' less scheduling-sensitive. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8770 --- diff --git a/helgrind/tests/tc21_pthonce.stderr.exp-glibc23-amd64 b/helgrind/tests/tc21_pthonce.stderr.exp-glibc23-amd64 index 72cc0d8fc4..61a5660855 100644 --- a/helgrind/tests/tc21_pthonce.stderr.exp-glibc23-amd64 +++ b/helgrind/tests/tc21_pthonce.stderr.exp-glibc23-amd64 @@ -1,12 +1,12 @@ -Thread #2 was created +Thread #x was created at 0x........: clone (in /...libc...) by 0x........: ... by 0x........: pthread_create@GLIBC_ (in /lib/libpthread...) by 0x........: pthread_create@* (hg_intercepts.c:...) by 0x........: main (tc21_pthonce.c:86) -Thread #3 was created +Thread #x was created at 0x........: clone (in /...libc...) by 0x........: ... by 0x........: pthread_create@GLIBC_ (in /lib/libpthread...) diff --git a/helgrind/tests/tc21_pthonce.stderr.exp-glibc25-amd64 b/helgrind/tests/tc21_pthonce.stderr.exp-glibc25-amd64 index 69ce61da16..3c07dac197 100644 --- a/helgrind/tests/tc21_pthonce.stderr.exp-glibc25-amd64 +++ b/helgrind/tests/tc21_pthonce.stderr.exp-glibc25-amd64 @@ -1,24 +1,24 @@ -Thread #3 was created +Thread #x was created at 0x........: clone (in /...libc...) by 0x........: ... by 0x........: pthread_create@GLIBC_ (in /lib/libpthread...) by 0x........: pthread_create@* (hg_intercepts.c:...) by 0x........: main (tc21_pthonce.c:86) -Thread #2 was created +Thread #x was created at 0x........: clone (in /...libc...) by 0x........: ... by 0x........: pthread_create@GLIBC_ (in /lib/libpthread...) by 0x........: pthread_create@* (hg_intercepts.c:...) by 0x........: main (tc21_pthonce.c:86) -Possible data race during read of size 4 at 0x........ by thread #3 +Possible data race during read of size 4 at 0x........ by thread #x at 0x........: child (tc21_pthonce.c:74) by 0x........: mythread_wrapper (hg_intercepts.c:...) by 0x........: ... by 0x........: ... - This conflicts with a previous access by thread #2 + This conflicts with a previous access by thread #x at 0x........: child (tc21_pthonce.c:74) by 0x........: mythread_wrapper (hg_intercepts.c:...) by 0x........: ... diff --git a/helgrind/tests/tc21_pthonce.stderr.exp-glibc25-x86 b/helgrind/tests/tc21_pthonce.stderr.exp-glibc25-x86 index bd082139b4..901d1d4de2 100644 --- a/helgrind/tests/tc21_pthonce.stderr.exp-glibc25-x86 +++ b/helgrind/tests/tc21_pthonce.stderr.exp-glibc25-x86 @@ -1,11 +1,11 @@ -Thread #2 was created +Thread #x was created at 0x........: clone (in /...libc...) by 0x........: pthread_create@GLIBC_ (in /lib/libpthread...) by 0x........: pthread_create@* (hg_intercepts.c:...) by 0x........: main (tc21_pthonce.c:86) -Thread #3 was created +Thread #x was created at 0x........: clone (in /...libc...) by 0x........: pthread_create@GLIBC_ (in /lib/libpthread...) by 0x........: pthread_create@* (hg_intercepts.c:...) diff --git a/helgrind/tests/tc21_pthonce.vgtest b/helgrind/tests/tc21_pthonce.vgtest index d9b9a81be1..37688a1252 100644 --- a/helgrind/tests/tc21_pthonce.vgtest +++ b/helgrind/tests/tc21_pthonce.vgtest @@ -1 +1,2 @@ prog: tc21_pthonce +stderr_filter: ./filter_threadnums