Exemplo n.º 1
0
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);
}
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
 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();
 }