From 1234faf487fdfa79bbb9e0f0e305cce08b676aea Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 2 Jul 2018 16:54:07 +0200 Subject: [PATCH] Fix GCOV scan pattern (PR testsuite/86366). 2018-07-02 Martin Liska PR testsuite/86366 * gcc.dg/profile-dir-1.c: Fix scanned pattern. * gcc.dg/profile-dir-2.c: Likewise. * gcc.dg/profile-dir-3.c: Likewise. From-SVN: r262311 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/gcc.dg/profile-dir-1.c | 2 +- gcc/testsuite/gcc.dg/profile-dir-2.c | 2 +- gcc/testsuite/gcc.dg/profile-dir-3.c | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ce39a8285c8..b4eabd97529 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2018-07-02 Martin Liska + + PR testsuite/86366 + * gcc.dg/profile-dir-1.c: Fix scanned pattern. + * gcc.dg/profile-dir-2.c: Likewise. + * gcc.dg/profile-dir-3.c: Likewise. + 2018-07-02 Christophe Lyon * gcc.target/arm/arm-soft-strd-even.c: Skip if -mfloat-abi is diff --git a/gcc/testsuite/gcc.dg/profile-dir-1.c b/gcc/testsuite/gcc.dg/profile-dir-1.c index df49e2361f4..01269f99902 100644 --- a/gcc/testsuite/gcc.dg/profile-dir-1.c +++ b/gcc/testsuite/gcc.dg/profile-dir-1.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-profiling "-fprofile-generate" } */ /* { dg-options "-O -fprofile-generate=. -fdump-ipa-cgraph" } */ -/* { dg-final { scan-ipa-dump " ./profile-dir-1.gcda" "cgraph" } } */ +/* { dg-final { scan-ipa-dump "Using data file \.\/.*#profile-dir-1.gcda" "cgraph" } } */ int main(void) diff --git a/gcc/testsuite/gcc.dg/profile-dir-2.c b/gcc/testsuite/gcc.dg/profile-dir-2.c index 004ba0b0905..13081ce253f 100644 --- a/gcc/testsuite/gcc.dg/profile-dir-2.c +++ b/gcc/testsuite/gcc.dg/profile-dir-2.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-profiling "-fprofile-generate" } */ /* { dg-options "-O -fprofile-generate -fdump-ipa-cgraph" } */ -/* { dg-final { scan-ipa-dump "/profile-dir-2.gcda" "cgraph" } } */ +/* { dg-final { scan-ipa-dump "Using data file .*\/profile-dir-2.gcda" "cgraph" } } */ int main(void) diff --git a/gcc/testsuite/gcc.dg/profile-dir-3.c b/gcc/testsuite/gcc.dg/profile-dir-3.c index 6b47807d850..21f975a93e9 100644 --- a/gcc/testsuite/gcc.dg/profile-dir-3.c +++ b/gcc/testsuite/gcc.dg/profile-dir-3.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-profiling "-fprofile-generate" } */ /* { dg-options "-O -fprofile-generate -fprofile-dir=. -fdump-ipa-cgraph" } */ -/* { dg-final { scan-ipa-dump " ./profile-dir-3.gcda" "cgraph" } } */ +/* { dg-final { scan-ipa-dump "Using data file \.\/.*#profile-dir-3.gcda" "cgraph" } } */ int main(void) -- 2.30.2