More info, maybe?

This commit is contained in:
Eric Vergnaud 2015-09-19 00:59:19 +08:00
parent 6d859a5168
commit f21ec5826e
1 changed files with 4 additions and 1 deletions

View File

@ -289,7 +289,10 @@ public abstract class BaseTest {
writeFile(tmpdir, "input", input); writeFile(tmpdir, "input", input);
writeLexerTestFile(lexerName, showDFA); writeLexerTestFile(lexerName, showDFA);
addSourceFiles("Test.cs"); addSourceFiles("Test.cs");
compile(); if(!compile()) {
System.err.println("Failed to compile!");
return stderrDuringParse;
}
String output = execTest(); String output = execTest();
if ( stderrDuringParse!=null && stderrDuringParse.length()>0 ) { if ( stderrDuringParse!=null && stderrDuringParse.length()>0 ) {
System.err.println(stderrDuringParse); System.err.println(stderrDuringParse);