megatest now checks refc too (#21341)

* megatest now checks refc too

* fixes refc
This commit is contained in:
ringabout 2023-02-10 05:14:39 +08:00 • committed by GitHub
commit 51f410e1d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 3 deletions

View file

@ -718,6 +718,8 @@ proc processCategory(r: var TResults, cat: Category,
case cat2 case cat2
of "megatest": of "megatest":
runJoinedTest(r, cat, testsDir, options) runJoinedTest(r, cat, testsDir, options)
if isNimRepoTests():
runJoinedTest(r, cat, testsDir, options & " --mm:refc")
else: else:
var testsRun = 0 var testsRun = 0
var files: seq[string] var files: seq[string]

View file

@ -174,4 +174,5 @@ block: # bug #12589
proc typ(): OGRwkbGeometryType = proc typ(): OGRwkbGeometryType =
return wkbPoint25D return wkbPoint25D
doAssert $typ() == "wkbPoint25D" when not defined(gcRefc):
doAssert $typ() == "wkbPoint25D"

View file

@ -1,3 +1,7 @@
discard """
matrix: "--mm:orc"
"""
type type
Foo = object Foo = object
y: int y: int

View file

@ -66,7 +66,8 @@ let limit = 1'u64
let rangeVar = 0'u64 ..< limit let rangeVar = 0'u64 ..< limit
doAssert repr(rangeVar) == """0 .. 0""", repr(rangeVar) when not defined(gcRefc):
doAssert repr(rangeVar) == """0 .. 0""", repr(rangeVar)
# bug #15210 # bug #15210

View file

@ -1 +1,5 @@
discard """
matrix: "--mm:orc"
"""
doAssert repr(int) == "int" doAssert repr(int) == "int"