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
commit cdbf5b4699
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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