Home | History | Annotate | Download | only in tests

Lines Matching defs:fp

251   FILE* fp = popen(command.c_str(), "r");
252 if (fp == NULL) {
258 while (fgets(buf, sizeof(buf), fp) != NULL) {
286 int result = pclose(fp);
489 FILE* fp = fopen(xml_output_filename.c_str(), "w");
490 if (fp == NULL) {
517 fputs("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n", fp);
518 fprintf(fp, "<testsuites tests=\"%zu\" failures=\"%zu\" disabled=\"0\" errors=\"0\"",
520 fprintf(fp, " timestamp=\"%s\" time=\"%.3lf\" name=\"AllTests\">\n", timestamp, elapsed_time_ns / 1e9);
523 fprintf(fp, " <testsuite name=\"%s\" tests=\"%zu\" failures=\"%zu\" disabled=\"0\" errors=\"0\"",
525 fprintf(fp, " time=\"%.3lf\">\n", elapsed_time_list[i] / 1e9);
528 fprintf(fp, " <testcase name=\"%s\" status=\"run\" time=\"%.3lf\" classname=\"%s\"",
532 fputs(" />\n", fp);
534 fputs(">\n", fp);
537 fprintf(fp, " <failure message=\"%s\" type=\"\">\n", escaped_test_output.c_str());
538 fputs(" </failure>\n", fp);
539 fputs(" </testcase>\n", fp);
543 fputs(" </testsuite>\n", fp);
545 fputs("</testsuites>\n", fp);
546 fclose(fp);