diff --git a/testsuite/tests/typecheck/should_compile/T10489.hs b/testsuite/tests/typecheck/should_compile/T10489.hs
index 892965e8d8908985800d2901423bba7964294967..c3d8c5c52a6d4e135c2ba292b8a81eba1a0446df 100644
--- a/testsuite/tests/typecheck/should_compile/T10489.hs
+++ b/testsuite/tests/typecheck/should_compile/T10489.hs
@@ -1,3 +1,4 @@
 module T10489 where
 
+-- Triggered an ASSERT in a debug build at some point.
 convert d = let d' = case d of '0' -> '!' in d'
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index 33fff944a5faba4c31697a4abcedf9925686faab..9b25e3a99b90048c76f2dba1814ed07dfe946ab8 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -444,6 +444,6 @@ test('T10177', normal, compile, [''])
 test('T10195', normal, compile, [''])
 test('T10109', normal, compile, [''])
 test('T10335', normal, compile, [''])
-test('T10489', normal, compile, [''])
+test('T10489', unless(compiler_debugged(), skip), compile, [''])
 test('T10564', normal, compile, [''])
 test('T10390', normal, compile, [''])