aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2018-02-23 15:17:35 +0100
committerSegher Boessenkool <segher@gcc.gnu.org>2018-02-23 15:17:35 +0100
commit32995c0244ae42436a1ee89de20a082fa2a71d93 (patch)
treeb386c5fdcd4cc6d3e960e26e3c1725cfc02ec27e /gcc
parent54fbd24d8eee02af48624d091452d9267887f722 (diff)
downloadgcc-32995c0244ae42436a1ee89de20a082fa2a71d93.zip
gcc-32995c0244ae42436a1ee89de20a082fa2a71d93.tar.gz
gcc-32995c0244ae42436a1ee89de20a082fa2a71d93.tar.bz2
Fix tsan race_on_mutex.c testcase (PR80551)
The testcase did not match the glibc internal names while it should. This fixes it. gcc/testsuite/ PR testsuite/80551 * c-c++-common/tsan/race_on_mutex.c: Change regexp to allow __GI___pthread_mutex_init as well. From-SVN: r257932
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/c-c++-common/tsan/race_on_mutex.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index fca98dd..cbd0160 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2018-02-23 Segher Boessenkool <segher@kernel.crashing.org>
+
+ PR testsuite/80551
+ * c-c++-common/tsan/race_on_mutex.c: Change regexp to allow
+ __GI___pthread_mutex_init as well.
+
2018-02-23 Paul Thomas <pault@gcc.gnu.org>
PR fortran/83148
diff --git a/gcc/testsuite/c-c++-common/tsan/race_on_mutex.c b/gcc/testsuite/c-c++-common/tsan/race_on_mutex.c
index def1d47..2e4b7ac 100644
--- a/gcc/testsuite/c-c++-common/tsan/race_on_mutex.c
+++ b/gcc/testsuite/c-c++-common/tsan/race_on_mutex.c
@@ -42,5 +42,5 @@ int main() {
/* { dg-output " #1 Thread2.* .*(race_on_mutex.c:22|\\?{2}:0) (.*)" } */
/* { dg-output " Previous write of size \[0-9]\+ at .* by thread T1:(\n|\r\n|\r)" } */
/* { dg-output "( #0 \[^\n\r\]*(\n|\r\n|\r))?" } */
-/* { dg-output " #\[01\] (__)?pthread_mutex_init \[^\n\r\]* (.)*" } */
+/* { dg-output " #\[01\] ((__GI_)?__)?pthread_mutex_init \[^\n\r\]* (.)*" } */
/* { dg-output " #\[12\] Thread1.* .*(race_on_mutex.c:12|\\?{2}:0) .*" } */