diff --git a/testsuite/tests/ghci/T16525a/all.T b/testsuite/tests/ghci/T16525a/all.T
index 6fbd3e8a4f9b218995c5833747e39bbcec692a1d..a6b9d9074225512ef768ab0d31732d171a25e5c4 100644
--- a/testsuite/tests/ghci/T16525a/all.T
+++ b/testsuite/tests/ghci/T16525a/all.T
@@ -1,5 +1,6 @@
 test('T16525a',
      [extra_files(['A.hs', 'B.hs', ]),
-      extra_run_opts('+RTS -DS -RTS'),
+      when(compiler_debugged(), extra_run_opts('+RTS -DS -RTS')),
+      # We don't support unloading with the dynamic linker
       when(ghc_dynamic(), skip), ],
      ghci_script, ['T16525a.script'])