Fix tsan race_on_mutex.c testcase (PR80551)
authorSegher Boessenkool <segher@kernel.crashing.org>
Fri, 23 Feb 2018 14:17:35 +0000 (15:17 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Fri, 23 Feb 2018 14:17:35 +0000 (15:17 +0100)
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

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/tsan/race_on_mutex.c

index fca98ddd52b5821f36bade299e7048689bdc655a..cbd0160288a933d4815464b801a1e7bd86316711 100644 (file)
@@ -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
index def1d47de7bc1bb2d10084eb13b68d690c91a1d5..2e4b7ac3cb94f0d7b051783c8380fe223e844dca 100644 (file)
@@ -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) .*" } */