From f21ec5826e0ce7034dd4cc4686d9bd450d110d9f Mon Sep 17 00:00:00 2001 From: Eric Vergnaud Date: Sat, 19 Sep 2015 00:59:19 +0800 Subject: [PATCH] More info, maybe? --- .../test/org/antlr/v4/test/runtime/csharp/BaseTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runtime-testsuite/test/org/antlr/v4/test/runtime/csharp/BaseTest.java b/runtime-testsuite/test/org/antlr/v4/test/runtime/csharp/BaseTest.java index 4d2b02377..38f2e5399 100644 --- a/runtime-testsuite/test/org/antlr/v4/test/runtime/csharp/BaseTest.java +++ b/runtime-testsuite/test/org/antlr/v4/test/runtime/csharp/BaseTest.java @@ -289,7 +289,10 @@ public abstract class BaseTest { writeFile(tmpdir, "input", input); writeLexerTestFile(lexerName, showDFA); addSourceFiles("Test.cs"); - compile(); + if(!compile()) { + System.err.println("Failed to compile!"); + return stderrDuringParse; + } String output = execTest(); if ( stderrDuringParse!=null && stderrDuringParse.length()>0 ) { System.err.println(stderrDuringParse);