From 1417e13309505ee49dadce5c9d2e571eb3e199ee Mon Sep 17 00:00:00 2001
From: Cheng Shao <terrorjack@type.dance>
Date: Mon, 17 Feb 2025 17:59:59 +0000
Subject: [PATCH] testsuite: fix InternalCounters test with +debug_ghc

The `InternalCounters` test case fails when ghc is built with
`+debug_ghc`. This patch skips it in that case and allows the
testsuite to pass for the `+debug_ghc` flavour transformer.

(cherry picked from commit 59b9307b239f0e1058ccc90ca2fadb86552c0308)
---
 testsuite/tests/rts/all.T | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/testsuite/tests/rts/all.T b/testsuite/tests/rts/all.T
index 96749630129..63f1671ca79 100644
--- a/testsuite/tests/rts/all.T
+++ b/testsuite/tests/rts/all.T
@@ -469,6 +469,8 @@ test('InternalCounters',
     # The ways which build against the debug RTS are built with PROF_SPIN and
     # therefore differ in output
   , omit_ways(['nonmoving_thr_sanity', 'threaded2_sanity', 'sanity'])
+    # Likewise when ghc is linked with debug RTS using +debug_ghc
+  , when(debug_rts(), skip)
   ], makefile_test, ['InternalCounters'])
 test('alloccounter1', js_broken(22261), compile_and_run,
   [
-- 
GitLab