summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-04-27 02:11:28 -0700
committerGitHub <noreply@github.com>2021-04-27 11:11:28 +0200
commita236002e54d68a672c720bd9b6d27ea0ba44edb8 (patch)
tree1f8a8006346716ac45c57b6b01326666a6e7b7c0 /tests
parent66022423aa21710f57f36e4f3c8c9633567cdb5e (diff)
downloadNim-a236002e54d68a672c720bd9b6d27ea0ba44edb8.tar.gz
testament: add `nimoutFull: bool` spec (#17867)
* testament: add `nimoutFull: bool` spec
* PRTEMP
* works
* cleanup
* add test for #12741
* PRTEMP failing test
* remove unrelated changes
* changelog
Diffstat (limited to 'tests')
-rw-r--r--tests/config.nims8
-rw-r--r--tests/testament/tshould_not_work.nim2
2 files changed, 8 insertions, 2 deletions
diff --git a/tests/config.nims b/tests/config.nims
index e5d6545f4..578b69e76 100644
--- a/tests/config.nims
+++ b/tests/config.nims
@@ -6,9 +6,13 @@ switch("path", "$lib/../testament/lib")
 ## prevent common user config settings to interfere with testament expectations
 ## Indifidual tests can override this if needed to test for these options.
 switch("colors", "off")
-switch("filenames", "legacyRelProj")
+
 switch("excessiveStackTrace", "off")
-switch("spellSuggest", "0")
+
+when (NimMajor, NimMinor, NimPatch) >= (1,5,1):
+  # to make it easier to test against older nim versions, (best effort only)
+  switch("filenames", "legacyRelProj")
+  switch("spellSuggest", "0")
 
 # for std/unittest
 switch("define", "nimUnittestOutputLevel:PRINT_FAILURES")
diff --git a/tests/testament/tshould_not_work.nim b/tests/testament/tshould_not_work.nim
index a0b4d6a36..2777bfe95 100644
--- a/tests/testament/tshould_not_work.nim
+++ b/tests/testament/tshould_not_work.nim
@@ -21,6 +21,8 @@ Failure: reCodegenFailure
 max allowed size: 1
 FAIL: tests/shouldfail/tnimout.nim c
 Failure: reMsgsDiffer
+FAIL: tests/shouldfail/tnimoutfull.nim c
+Failure: reMsgsDiffer
 FAIL: tests/shouldfail/toutput.nim c
 Failure: reOutputsDiffer
 FAIL: tests/shouldfail/toutputsub.nim c