]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
have helgrind filter_stderr transforming tid n into tid #x
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Fri, 6 Jun 2014 23:45:46 +0000 (23:45 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Fri, 6 Jun 2014 23:45:46 +0000 (23:45 +0000)
to avoid gdbserver_tests/hginfo random failures
caused by thread scheduling differences

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

gdbserver_tests/hginfo.stderrB.exp
helgrind/tests/filter_stderr

index 9855e3c22a8a29f132785b39e7f84d4d35d315f8..9e4394085d12e57e8693823bb68105f4a1a14b48 100644 (file)
@@ -3,7 +3,7 @@ vgdb-error value changed from 0 to 999999
 Lock ga 0x........ {
  Address 0x........ is 0 bytes inside data symbol "mx"
    kind   mbRec
- { W1:thread #x tid 2 }
+ { W1:thread #x tid #x }
 }
  Address 0x........ is 0 bytes inside a block of size 1,008 alloc'd
    at 0x........: malloc (vg_replace_malloc.c:...)
@@ -13,6 +13,6 @@ Lock ga 0x........ {
 Lock ga 0x........ {
  Address 0x........ is 0 bytes inside data symbol "mx"
    kind   mbRec
- { W1:thread #x tid 3 }
+ { W1:thread #x tid #x }
 }
  Address 0x........ is 0 bytes inside an unallocated block of size 1,008 in arena "client"
index 30975dfa60bb185500e16c28e9e67cd149cc7c4e..3b330329eaeebd51318b847cfc37ed0462668da8 100755 (executable)
@@ -8,10 +8,11 @@ $dir/../../tests/filter_stderr_basic                    |
 $dir/../../tests/filter_addresses                       |
 
 # get rid of the numbers in bits of text "Thread #n", "thread #n",
-# "Thread n" and "thread n",
+# "Thread n" and "thread n", "tid n"
 # as these make some tests more scheduling sensitive -- those where
 # there are multiple threads which play interchangeable roles.
 sed \
+ -e "s/tid [0-9][0-9]*/tid #x/g" \
  -e "s/hread #[0-9][0-9]*/hread #x/g" \
  -e "s/hread [0-9][0-9]*/hread x/g" |