tshouldfail is stricter

This commit is contained in:
Arne Döring
2018-11-30 14:28:18 +01:00
committed by Araq
parent 1105d03644
commit fb1f5c62b5
5 changed files with 18 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
discard """
errormsg: "undeclared identifier: 'undeclared'"
line: 8
column: 7
errormsg: "undeclared identifier: 'undeclared'"
"""
# test should fail because the line directive is wrong

View File

@@ -1,7 +1,7 @@
discard """
errormsg: "wrong error message"
line: 8
column: 6
errormsg: "wrong error message"
"""
# test should fail because the line directive is wrong

View File

@@ -1,6 +1,6 @@
discard """
file: "notthisfile.nim"
errmsg: "undeclared identifier: 'undefined'"
file: "notthisfile.nim"
"""
echo undefined

View File

@@ -1,7 +1,7 @@
discard """
errormsg: "undeclared identifier: 'undeclared'"
line: 9
column: 6
errormsg: "undeclared identifier: 'undeclared'"
"""
# test should fail because the line directive is wrong

View File

@@ -3,15 +3,29 @@ cmd: "testament/tester --directory:testament --colors:off --backendLogging:off -
action: compile
nimout: '''
FAIL: tccodecheck.nim C
Failure: reCodegenFailure
Expected:
baz
FAIL: tcolumn.nim C
Failure: reLinesDiffer
FAIL: terrormsg.nim C
Failure: reMsgsDiffer
FAIL: texitcode1.nim C
Failure: reExitcodesDiffer
FAIL: tfile.nim C
Failure: reFilesDiffer
FAIL: tline.nim C
Failure: reLinesDiffer
FAIL: tmaxcodesize.nim C
Failure: reCodegenFailure
max allowed size: 1
FAIL: tnimout.nim C
Failure: reMsgsDiffer
FAIL: toutput.nim C
Failure: reOutputsDiffer
FAIL: toutputsub.nim C
Failure: reOutputsDiffer
FAIL: tsortoutput.nim C
Failure: reOutputsDiffer
'''
"""