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:
parent
e03a178bff
commit
cdbf5b4699
13 changed files with 13 additions and 1 deletions
|
|
@ -900,6 +900,7 @@ proc rawDealloc(a: var MemRegion, p: pointer) =
|
||||||
#sysAssert(isAllocatedPtr(a, p), "rawDealloc: no allocated pointer")
|
#sysAssert(isAllocatedPtr(a, p), "rawDealloc: no allocated pointer")
|
||||||
sysAssert(allocInv(a), "rawDealloc: begin")
|
sysAssert(allocInv(a), "rawDealloc: begin")
|
||||||
var c = pageAddr(p)
|
var c = pageAddr(p)
|
||||||
|
sysAssert(c != nil, "rawDealloc: begin")
|
||||||
if isSmallChunk(c):
|
if isSmallChunk(c):
|
||||||
# `p` is within a small chunk:
|
# `p` is within a small chunk:
|
||||||
var c = cast[PSmallChunk](c)
|
var c = cast[PSmallChunk](c)
|
||||||
|
|
|
||||||
|
|
@ -507,6 +507,7 @@ proc testSpecHelper(r: var TResults, test: var TTest, expected: TSpec,
|
||||||
else:
|
else:
|
||||||
buf
|
buf
|
||||||
if exitCode != expected.exitCode:
|
if exitCode != expected.exitCode:
|
||||||
|
given.err = reExitcodesDiffer
|
||||||
r.addResult(test, target, extraOptions, "exitcode: " & $expected.exitCode,
|
r.addResult(test, target, extraOptions, "exitcode: " & $expected.exitCode,
|
||||||
"exitcode: " & $exitCode & "\n\nOutput:\n" &
|
"exitcode: " & $exitCode & "\n\nOutput:\n" &
|
||||||
bufB, reExitcodesDiffer)
|
bufB, reExitcodesDiffer)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
|
disabled: i386
|
||||||
output: '''10.0
|
output: '''10.0
|
||||||
60.0
|
60.0
|
||||||
90.0
|
90.0
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
|
disabled: i386
|
||||||
matrix: "-d:nimTtlsemulationCase1 --threads --tlsEmulation:on; -d:nimTtlsemulationCase2 --threads --tlsEmulation:off; -d:nimTtlsemulationCase3 --threads"
|
matrix: "-d:nimTtlsemulationCase1 --threads --tlsEmulation:on; -d:nimTtlsemulationCase2 --threads --tlsEmulation:off; -d:nimTtlsemulationCase3 --threads"
|
||||||
targets: "c cpp"
|
targets: "c cpp"
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
|
disabled: i386
|
||||||
output: '''
|
output: '''
|
||||||
In doStuff()
|
In doStuff()
|
||||||
In initProcess()
|
In initProcess()
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
|
disabled: i386
|
||||||
output: '''0
|
output: '''0
|
||||||
hello'''
|
hello'''
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
|
disabled: i386
|
||||||
outputsub: "Just a simple text for test"
|
outputsub: "Just a simple text for test"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
targets: "c cpp js"
|
targets: "js"
|
||||||
matrix: "--threads:on"
|
matrix: "--threads:on"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
|
disabled: i386
|
||||||
outputsub: "129"
|
outputsub: "129"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
|
disabled: i386
|
||||||
matrix: "--mm:refc; --mm:orc --deepcopy:on"
|
matrix: "--mm:refc; --mm:orc --deepcopy:on"
|
||||||
output: '''some string here
|
output: '''some string here
|
||||||
dying some string here'''
|
dying some string here'''
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
|
disabled: i386
|
||||||
output: '''true'''
|
output: '''true'''
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
|
disabled: i386
|
||||||
outputsub: "65"
|
outputsub: "65"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
|
disabled: i386
|
||||||
output: '''
|
output: '''
|
||||||
10
|
10
|
||||||
1111
|
1111
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue