- /* FIXME: Valgrind's output sucks. XML is unreadable by
- * humans *and* doesn't support children reporting. */
- log = talloc_asprintf(score,
- "%s.valgrind-log", i->compiled);
- if (!keep)
- talloc_set_destructor(log,
- unlink_file_destructor);
-
- pass = run_command(score, timeleft, &cmdout,
- "valgrind -q --error-exitcode=101"
- " --leak-check=full"
- " --log-fd=3 %s %s"
- " 3> %s",
- options,
- i->compiled, log);
- output = grab_file(i, log, NULL);
- /* No valgrind errors? Expect it to pass... */
+ if (keep)
+ talloc_set_destructor(i->valgrind_log, NULL);
+
+ output = grab_file(i, i->valgrind_log, NULL);
+ /* No valgrind errors? */