Missed to catch exceptions for compiler version print.

This commit is contained in:
Mike Lischke 2016-11-09 10:42:48 +01:00
parent 5bcbea82e3
commit 5d783bf82e
1 changed files with 14 additions and 9 deletions

View File

@ -614,6 +614,7 @@ public abstract class BaseCppTest {
// Build runtime using cmake once. // Build runtime using cmake once.
if (!runtimeBuiltOnce) { if (!runtimeBuiltOnce) {
try {
System.out.println("Located compiler at: " + compilerPath); System.out.println("Located compiler at: " + compilerPath);
ArrayList<String> args = new ArrayList<String>(); ArrayList<String> args = new ArrayList<String>();
args.add(compilerPath); args.add(compilerPath);
@ -622,6 +623,10 @@ public abstract class BaseCppTest {
builder.directory(new File(tmpdir)); builder.directory(new File(tmpdir));
String output = runProcess(builder, "printing compiler version"); String output = runProcess(builder, "printing compiler version");
System.out.println("Compiler version is: " + output); System.out.println("Compiler version is: " + output);
}
catch (Exception e) {
System.err.println("Can't get compiler version");
}
runtimeBuiltOnce = true; runtimeBuiltOnce = true;
if (!buildRuntime()) { if (!buildRuntime()) {