|
From: <sv...@va...> - 2014-06-06 23:46:10
|
Author: philippe
Date: Fri Jun 6 23:45:46 2014
New Revision: 14000
Log:
have helgrind filter_stderr transforming tid n into tid #x
to avoid gdbserver_tests/hginfo random failures
caused by thread scheduling differences
Modified:
trunk/gdbserver_tests/hginfo.stderrB.exp
trunk/helgrind/tests/filter_stderr
Modified: trunk/gdbserver_tests/hginfo.stderrB.exp
==============================================================================
--- trunk/gdbserver_tests/hginfo.stderrB.exp (original)
+++ trunk/gdbserver_tests/hginfo.stderrB.exp Fri Jun 6 23:45:46 2014
@@ -3,7 +3,7 @@
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........ {
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"
Modified: trunk/helgrind/tests/filter_stderr
==============================================================================
--- trunk/helgrind/tests/filter_stderr (original)
+++ trunk/helgrind/tests/filter_stderr Fri Jun 6 23:45:46 2014
@@ -8,10 +8,11 @@
$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" |
|