Lines Matching refs:fp
100 FILE* fp = popen(command.c_str(), "re"); in EnumerateTests() local
102 FILE* fp = popen(command.c_str(), "r"); in EnumerateTests() local
104 if (fp == nullptr) { in EnumerateTests()
120 while (getline(&buffer, &buffer_len, fp) > 0) { in EnumerateTests()
176 if (pclose(fp) == -1) { in EnumerateTests()
673 FILE* fp = fopen(options_.xml_file().c_str(), "w"); in WriteXmlResults() local
674 if (fp == nullptr) { in WriteXmlResults()
688 fputs("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n", fp); in WriteXmlResults()
689 fprintf(fp, "<testsuites tests=\"%zu\" failures=\"%zu\" disabled=\"0\" errors=\"0\"", in WriteXmlResults()
691 fprintf(fp, " timestamp=\"%s\" time=\"%.3lf\" name=\"AllTests\">\n", timestamp, in WriteXmlResults()
725 fprintf(fp, in WriteXmlResults()
728 fprintf(fp, " time=\"%.3lf\">\n", suite_entry.elapsed_ms); in WriteXmlResults()
731 fprintf(fp, " <testcase name=\"%s\" status=\"run\" time=\"%.3lf\" classname=\"%s\"", in WriteXmlResults()
735 fputs(" />\n", fp); in WriteXmlResults()
737 fputs(">\n", fp); in WriteXmlResults()
739 fprintf(fp, " <failure message=\"%s\" type=\"\">\n", escaped_output.c_str()); in WriteXmlResults()
740 fputs(" </failure>\n", fp); in WriteXmlResults()
741 fputs(" </testcase>\n", fp); in WriteXmlResults()
744 fputs(" </testsuite>\n", fp); in WriteXmlResults()
746 fputs("</testsuites>\n", fp); in WriteXmlResults()
747 fclose(fp); in WriteXmlResults()