- cmdout = run_command(m, timeleft,
- "valgrind -q --error-exitcode=100 %s",
- i->compiled);
- if (cmdout) {
- score->error = "Running under valgrind";
- score_file_error(score, i, 0, cmdout);
- } else
+ if (run_command(score, timeleft, &cmdout,
+ "valgrind -q --error-exitcode=100%s %s",
+ run_tests_vg.options ?
+ run_tests_vg.options : "",
+ i->compiled)) {