EXTRA_DIST = \
$(noinst_SCRIPTS) \
- atomic_var.stderr.exp-with-atomic-builtins-1 \
- atomic_var.stderr.exp-with-atomic-builtins-2 \
+ atomic_var.stderr.exp-with-atomic-builtins \
atomic_var.stderr.exp-without-atomic-builtins \
atomic_var.vgtest \
bar_bad.stderr.exp \
Start of test.
-Thread 2:
-Conflicting load by thread 2/3 at 0x........ size 4
+Conflicting load by thread x/x at 0x........ size 4
at 0x........: thread_func_2 (atomic_var.c:?)
by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
by 0x........: (within libpthread-?.?.so)
by 0x........: clone (in /...libc...)
Location 0x........ is 0 bytes inside local var "s_y"
-declared at atomic_var.c:35, in frame #? of thread 2
+declared at atomic_var.c:35, in frame #? of thread x
y = 1
Test finished.
+++ /dev/null
-
-Start of test.
-Thread 3:
-Conflicting load by thread 3/3 at 0x........ size 4
- at 0x........: thread_func_2 (atomic_var.c:?)
- by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
- by 0x........: (within libpthread-?.?.so)
- by 0x........: clone (in /...libc...)
-Location 0x........ is 0 bytes inside local var "s_y"
-declared at atomic_var.c:35, in frame #? of thread 3
-y = 1
-Test finished.
-
-ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
prereq: ./supported_libpthread
vgopts: --var-info=yes --check-stack-var=yes --show-confl-seg=no
prog: atomic_var
+stderr_filter: filter_stderr_and_thread_no
# Get rid of the numbers as these make some tests more scheduling sensitive
# -- those where there are multiple threads which play interchangeable roles.
grep -v "^Thread [0-9][0-9]*:$" |
-sed -e "s:hread [0-9][0-9]*/[0-9][0-9]*:hread x/x:g"
+sed -e "s:hread [0-9][0-9]*/[0-9][0-9]*:hread x/x:g" \
+ -e "s:of thread [0-9][0-9]*$:of thread x:g"