Skip to content

Commit

Permalink
C# runtime tests: don't write useless output to console
Browse files Browse the repository at this point in the history
  • Loading branch information
KvanTTT committed Nov 27, 2021
1 parent ba5bcab commit 841d309
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,20 +320,10 @@ public String execTest() {
process.waitFor();
stdoutVacuum.join();
stderrVacuum.join();
int exitValue = process.exitValue();
process.exitValue();
String stdoutString = stdoutVacuum.toString();
String stderrString = stderrVacuum.toString();
setParseErrors(stderrString);
if (exitValue != 0) {
System.err.println("execTest command: " + Utils.join(args, " "));
System.err.println("execTest exitValue: " + exitValue);
}
if (!stdoutString.isEmpty()) {
System.err.println("execTest stdoutVacuum: " + stdoutString);
}
if (!stderrString.isEmpty()) {
System.err.println("execTest stderrVacuum: " + stderrString);
}
return stdoutString;
} catch (Exception e) {
System.err.println("can't exec recognizer");
Expand Down

0 comments on commit 841d309

Please sign in to comment.