From abb82554b7e9fce4073e6c072174b0ecb8a92d2f Mon Sep 17 00:00:00 2001 From: Adam Strzelecki Date: Tue, 13 Oct 2015 13:49:34 +0200 Subject: 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. --- tests/testament/tester.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') 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 -- cgit 1.4.1-2-gfad0