]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add XFAIL parts of pr16855.C for dragonfly.
authorRimvydas Jasinskas <rimvydas.jas@gmail.com>
Tue, 18 Jan 2022 06:12:45 +0000 (06:12 +0000)
committerMartin Liska <mliska@suse.cz>
Wed, 19 Jan 2022 06:45:46 +0000 (07:45 +0100)
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>
gcc/testsuite/g++.dg/gcov/pr16855-priority.C
gcc/testsuite/g++.dg/gcov/pr16855.C

index 7e395652a63199be3c182f186dfa5e0a56f235b9..c7a58397bb911d54b37da015bee7b70ae5b9d626 100644 (file)
@@ -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* } } } */
index a68b05cb571c2e25230bf033de4c81176f1d6a84..f9b86a40001f9c609fd8c8eb64eadf76bbc74975 100644 (file)
@@ -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* } } } */