Commit b8a77bd8 authored by ufebl's avatar ufebl

Fix stddev

parent 5d4e4e44
......@@ -71,7 +71,7 @@ class BenchExecTest(BasicSyntaxTest):
self.env.run_command(cmd, *args, timeout=timeout, input_str=input_str)
runs.append((time.time() - start) * 1000)
except subprocess.CalledProcessError:
return _RunResult([-1,-1,-1,-1], False);
return _RunResult([-1,0], False);
return _RunResult(runs, True)
......@@ -117,7 +117,7 @@ class BenchExecTest(BasicSyntaxTest):
#test_result.add_file("Source file", self.preprocessed_file)
#os.chdir(cwd)
#return test_result
results.append(_RunResult([-1,-1,-1,-1], False));
results.append(_RunResult([-1,0], False));
else:
main_class = get_main_class_name(base_filename + ".java")
if not main_class:
......@@ -138,7 +138,7 @@ class BenchExecTest(BasicSyntaxTest):
#test_result.add_file("Source file", self.preprocessed_file)
#os.chdir(cwd)
#return test_result
results.append(_RunResult([-1,-1,-1,-1], False));
results.append(_RunResult([-1,0], False));
else:
results.append(self._bench_command("./a.out", timeout=timeout, input_str=input_str))
except SigKill as sig:
......@@ -147,7 +147,7 @@ class BenchExecTest(BasicSyntaxTest):
#test_result.add_file("Source file", self.preprocessed_file)
#os.chdir(cwd)
#return test_result
results.append(_RunResult([-1,-1,-1,-1], False));
results.append(_RunResult([-1,0], False));
except:
os.chdir(cwd)
raise
......
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