void print_dependencies (void) { FILE *f; struct dependency *dep; if (dep_file == NULL) return; f = fopen (dep_file, FOPEN_WT); if (f == NULL) { as_warn (_("can't open `%s' for writing"), dep_file); return; } column = 0; wrap_output (f, out_file_name, ':'); for (dep = dep_chain; dep != NULL; dep = dep->next) wrap_output (f, dep->file, ' '); putc ('\n', f); if (fclose (f)) as_warn (_("can't close `%s'"), dep_file); }
void passed_test(const test_name &test, const test_output &output, test_duration duration) override { bencode::encode(out, bencode::dict_view{ {"event", "passed_test"}, {"test", wrap_test(test)}, {"duration", duration.count()}, {"output", wrap_output(output)} }); out.flush(); }
void failed_test(const test_name &test, const std::string &message, const test_output &output, test_duration duration) override { bencode::encode(out, bencode::dict_view{ {"event", "failed_test"}, {"test", wrap_test(test)}, {"duration", duration.count()}, {"message", message}, {"output", wrap_output(output)} }); out.flush(); }