* humans, and you can't have both. */
run_command(score, timeleft, &cmdout,
"valgrind -q --error-exitcode=101"
+ " --child-silent-after-fork=yes"
" --leak-check=full"
" --log-fd=3 %s %s"
" 3> valgrind.log",
i->leak_info = get_leaks(output, &err);
}
if (err)
- score_file_error(score, i, 0, err);
+ score_file_error(score, i, 0, "%s", err);
else
score->score++;
}
foreach_ptr(list, &m->run_tests, &m->api_tests) {
list_for_each(list, i, list) {
if (i->leak_info) {
- score_file_error(score, i, 0, i->leak_info);
+ score_file_error(score, i, 0, "%s",
+ i->leak_info);
leaks = true;
}
}
}
+ /* FIXME: We don't fail for this, since many tests leak. */
+ score->pass = true;
if (!leaks) {
score->score = 1;
- score->pass = true;
}
}