public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-6719] Add XFAIL parts of pr16855.C for dragonfly.
@ 2022-01-19  6:46 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-01-19  6:46 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:32657045bd28f7d35c9b814d8b338c21e4f5dc40

commit r12-6719-g32657045bd28f7d35c9b814d8b338c21e4f5dc40
Author: Rimvydas Jasinskas <rimvydas.jas@gmail.com>
Date:   Tue Jan 18 06:12:45 2022 +0000

    Add XFAIL parts of pr16855.C for dragonfly.
    
    On DragonFly BSD profiling ends before these DTORs are invoked on dso cleanup.
    The -static compilation works as expected.
    
    gcc/testsuite/ChangeLog:
    
            PR testsuite/104022
            * g++.dg/gcov/pr16855.C: xfail the count lines for DTORs on dragonfly.
            * g++.dg/gcov/pr16855-priority.C: Ditto.  Adjust source layout so that
            dejagnu xfail expressions work.
    
    Signed-off-by: Rimvydas Jasinskas <rimvydas.jas@gmail.com>

Diff:
---
 gcc/testsuite/g++.dg/gcov/pr16855-priority.C | 6 ++++--
 gcc/testsuite/g++.dg/gcov/pr16855.C          | 4 ++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/gcc/testsuite/g++.dg/gcov/pr16855-priority.C b/gcc/testsuite/g++.dg/gcov/pr16855-priority.C
index 7e395652a63..c7a58397bb9 100644
--- a/gcc/testsuite/g++.dg/gcov/pr16855-priority.C
+++ b/gcc/testsuite/g++.dg/gcov/pr16855-priority.C
@@ -19,7 +19,9 @@ class Test
 {
 public:
   Test (void) { fprintf (stderr, "In Test::Test\n"); /* count(1) */ }
-  ~Test (void) { fprintf (stderr, "In Test::~Test\n"); /* count(1) */ }
+  ~Test (void) {
+   fprintf (stderr, "In Test::~Test\n"); /* count(1) { xfail *-*-dragonfly* } */
+  }
 } T1;
 
 void
@@ -76,4 +78,4 @@ static void __attribute__ ((destructor ((65535)))) dtor_65535 ()
   fprintf (stderr, "in destructor((65535))\n"); /* count(1) */
 }
 
-/* { dg-final { run-gcov branches { -b pr16855-priority.C } } } */
+/* { dg-final { run-gcov branches { -b pr16855-priority.C } { xfail *-*-dragonfly* } } } */
diff --git a/gcc/testsuite/g++.dg/gcov/pr16855.C b/gcc/testsuite/g++.dg/gcov/pr16855.C
index a68b05cb571..f9b86a40001 100644
--- a/gcc/testsuite/g++.dg/gcov/pr16855.C
+++ b/gcc/testsuite/g++.dg/gcov/pr16855.C
@@ -21,7 +21,7 @@ class Test
 public:
   Test (void) { fprintf (stderr, "In Test::Test\n"); /* count(1) */ }
   ~Test (void) {
-   fprintf (stderr, "In Test::~Test\n"); /* count(1) { xfail *-*-darwin* } */
+   fprintf (stderr, "In Test::~Test\n"); /* count(1) { xfail *-*-darwin* *-*-dragonfly* } */
   }
 } T1;
 
@@ -49,4 +49,4 @@ static void __attribute__ ((destructor)) dtor_default ()
   fprintf (stderr, "in destructor(())\n"); /* count(1) { xfail *-*-darwin* } */
 }
 
-/* { dg-final { run-gcov branches { -b pr16855.C } { xfail *-*-darwin* } } } */
+/* { dg-final { run-gcov branches { -b pr16855.C } { xfail *-*-darwin* *-*-dragonfly* } } } */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-19  6:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-19  6:46 [gcc r12-6719] Add XFAIL parts of pr16855.C for dragonfly Martin Liska

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).