summary refs log tree commit diff stats
path: root/tests/stdlib/tstrutils2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/tstrutils2.nim')
-rw-r--r--tests/stdlib/tstrutils2.nim7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/stdlib/tstrutils2.nim b/tests/stdlib/tstrutils2.nim
index 881817f90..a8bf08eed 100644
--- a/tests/stdlib/tstrutils2.nim
+++ b/tests/stdlib/tstrutils2.nim
@@ -1,10 +1,15 @@
+discard """
+  matrix: "--gc:refc; --gc:orc"
+"""
+
 import "$lib/.." / compiler/strutils2
 
 block: # setLen
   var a = "abc"
   a.setLen 0
   a.setLen 3, isInit = false
-  doAssert a[1] == 'b'
+  when defined(gcRefc): # bug #19763
+    doAssert a[1] == 'b'
   a.setLen 0
   a.setLen 3, isInit = true
   doAssert a[1] == '\0'