summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAdam Strzelecki <adam.strzelecki@pl.abb.com>2015-10-13 13:49:34 +0200
committerAdam Strzelecki <adam.strzelecki@pl.abb.com>2015-10-16 20:55:17 +0200
commitabb82554b7e9fce4073e6c072174b0ecb8a92d2f (patch)
tree014c5940e9750d7c712c3dc420f2a54d4ff0ed67 /tests
parent2bc6acc808f18de3910b7db12014c394dd400b39 (diff)
downloadNim-abb82554b7e9fce4073e6c072174b0ecb8a92d2f.tar.gz
compiler/msgs: Default to stderr for diagnostics
Previously we were defaulting to stdout for diagnostics, which could interfere
with scripts or `nim c -r' programs outputting their results to stdout,
possibly mixing their output with compiler messages.

This change makes now Nim to be inline with other compilers emitting
diagnostics to stderr. Also now --stdout option has proper meaning making all
diagnostics to be sent to stdout instead.

NOTE: Tester now calls compiler with --stdout.
Diffstat (limited to 'tests')
-rw-r--r--tests/testament/tester.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testament/tester.nim b/tests/testament/tester.nim
index 451bee1d1..b1e8ac099 100644
--- a/tests/testament/tester.nim
+++ b/tests/testament/tester.nim
@@ -292,7 +292,8 @@ proc testSpec(r: var TResults, test: TTest) =
   case expected.action
   of actionCompile:
     var given = callCompiler(expected.cmd, test.name,
-      test.options & " --hint[Path]:off --hint[Processing]:off", test.target)
+      test.options & " --stdout --hint[Path]:off --hint[Processing]:off",
+      test.target)
     compilerOutputTests(test, given, expected, r)
   of actionRun, actionRunNoSpec:
     # In this branch of code "early return" pattern is clearer than deep