Commit 23ae4da6 authored by ufebl's avatar ufebl

Improve compile error output

parent 940aab51
......@@ -131,7 +131,8 @@ class BenchExecTest(BasicSyntaxTest):
out, err, rtcode = self.env.run_command(self.env.mj_run_cmd, *(compiler_flag.split(" ") + [base_filename + ".java"]),
timeout=timeout)
if rtcode != 0:
_LOG.error("File \"{}\" can't be compile".format(self.preprocessed_file))
_LOG.error("File \"{}\" can't be compiled with flags \"{}\"".format(self.preprocessed_file, compiler_flag))
_LOG.error("Error: " + err.decode());
#test_result.incorrect_msg = "file can't be compiled"
#test_result.set_error_code(rtcode)
#test_result.add_long_text("Error output", err.decode())
......@@ -143,7 +144,7 @@ class BenchExecTest(BasicSyntaxTest):
else:
results.append(self._bench_command("./a.out", timeout=timeout, input_bytes=input_bytes))
except SigKill as sig:
_LOG.error("File \"{}\" can't be compile".format(self.preprocessed_file))
_LOG.error("File \"{}\" can't be compiled".format(self.preprocessed_file))
#test_result.incorrect_msg = "file can't be compiled: " + sig.name
#test_result.set_error_code(sig.retcode)
#test_result.add_file("Source file", self.preprocessed_file)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment