mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-26 17:24:02 +00:00
testament :show duration also for failed tests; improve tshould_not_work; mitigate #17946 tchannels timeouts (#17947)
* refs #17946; refactor testament test summary, show test duration for failures; increase timeout tchannels * revert workarounds from https://github.com/nim-lang/Nim/pull/16698 and add allowPrefixMatch optional param to greedyOrderedSubsetLines * add test * workaround for yet another testament bug
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
discard """
|
||||
targets: "c"
|
||||
ccodecheck: "baz"
|
||||
"""
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
discard """
|
||||
errormsg: "undeclared identifier: 'undeclared'"
|
||||
targets: "c"
|
||||
line: 9
|
||||
column: 7
|
||||
"""
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
discard """
|
||||
errormsg: "wrong error message"
|
||||
targets: "c"
|
||||
line: 9
|
||||
column: 6
|
||||
"""
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
discard """
|
||||
targets: "c"
|
||||
exitcode: 1
|
||||
"""
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
discard """
|
||||
targets: "c"
|
||||
errormsg: "undeclared identifier: 'undefined'"
|
||||
file: "notthisfile.nim"
|
||||
"""
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
discard """
|
||||
targets: "c"
|
||||
errormsg: "undeclared identifier: 'undeclared'"
|
||||
line: 10
|
||||
column: 6
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
discard """
|
||||
targets: "c"
|
||||
maxcodesize: 1
|
||||
"""
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
discard """
|
||||
targets: "c"
|
||||
nimout: "Hello World!"
|
||||
action: compile
|
||||
"""
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
discard """
|
||||
targets: "c"
|
||||
nimout: '''
|
||||
msg1
|
||||
msg2
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
discard """
|
||||
targets: "c"
|
||||
output: '''
|
||||
done
|
||||
'''
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
discard """
|
||||
outputsub: "something else"
|
||||
targets: "c"
|
||||
"""
|
||||
|
||||
echo "Hello World!"
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
discard """
|
||||
action: "reject"
|
||||
targets: "c"
|
||||
"""
|
||||
|
||||
# Because we set action="reject", we expect this line not to compile. But the
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
discard """
|
||||
sortoutput: true
|
||||
targets: "c"
|
||||
output: '''
|
||||
2
|
||||
1
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
discard """
|
||||
timeout: "0.1"
|
||||
targets: "c"
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
discard """
|
||||
valgrind: true
|
||||
targets: "c"
|
||||
cmd: "nim $target --gc:arc -d:useMalloc $options $file"
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user