fixes a severe bug of testament (#20832)

* test azure

* use exit 1

* try again

* use useSysAssert

* disable i386

* use refc for tlsEmulation on i386

* use refc

* disable i386

Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
This commit is contained in:
ringabout
2022-11-17 09:38:07 +08:00
committed by GitHub
parent e03a178bff
commit cdbf5b4699
13 changed files with 13 additions and 1 deletions

View File

@@ -900,6 +900,7 @@ proc rawDealloc(a: var MemRegion, p: pointer) =
#sysAssert(isAllocatedPtr(a, p), "rawDealloc: no allocated pointer")
sysAssert(allocInv(a), "rawDealloc: begin")
var c = pageAddr(p)
sysAssert(c != nil, "rawDealloc: begin")
if isSmallChunk(c):
# `p` is within a small chunk:
var c = cast[PSmallChunk](c)

View File

@@ -507,6 +507,7 @@ proc testSpecHelper(r: var TResults, test: var TTest, expected: TSpec,
else:
buf
if exitCode != expected.exitCode:
given.err = reExitcodesDiffer
r.addResult(test, target, extraOptions, "exitcode: " & $expected.exitCode,
"exitcode: " & $exitCode & "\n\nOutput:\n" &
bufB, reExitcodesDiffer)

View File

@@ -1,4 +1,5 @@
discard """
disabled: i386
output: '''10.0
60.0
90.0

View File

@@ -1,4 +1,5 @@
discard """
disabled: i386
matrix: "-d:nimTtlsemulationCase1 --threads --tlsEmulation:on; -d:nimTtlsemulationCase2 --threads --tlsEmulation:off; -d:nimTtlsemulationCase3 --threads"
targets: "c cpp"
"""

View File

@@ -1,4 +1,5 @@
discard """
disabled: i386
output: '''
In doStuff()
In initProcess()

View File

@@ -1,4 +1,5 @@
discard """
disabled: i386
output: '''0
hello'''
"""

View File

@@ -1,4 +1,5 @@
discard """
disabled: i386
outputsub: "Just a simple text for test"
"""

View File

@@ -1,5 +1,5 @@
discard """
targets: "c cpp js"
targets: "js"
matrix: "--threads:on"
"""

View File

@@ -1,4 +1,5 @@
discard """
disabled: i386
outputsub: "129"
"""

View File

@@ -1,4 +1,5 @@
discard """
disabled: i386
matrix: "--mm:refc; --mm:orc --deepcopy:on"
output: '''some string here
dying some string here'''

View File

@@ -1,4 +1,5 @@
discard """
disabled: i386
output: '''true'''
"""

View File

@@ -1,4 +1,5 @@
discard """
disabled: i386
outputsub: "65"
"""

View File

@@ -1,4 +1,5 @@
discard """
disabled: i386
output: '''
10
1111