Writes the current interval and resets counters only after a successful write. */
| 1347 | |
| 1348 | /* Writes the current interval and resets counters only after a successful write. */ |
| 1349 | static bool tf_coverage_flush(void) { |
| 1350 | if (__llvm_profile_write_file() != 0) { |
| 1351 | tf_coverage_write_failed = true; |
| 1352 | fprintf(stderr, "coverage profile write failed: %s\n", tf_coverage_profile); |
| 1353 | tf_fail_count++; |
| 1354 | return false; |
| 1355 | } |
| 1356 | __llvm_profile_reset_counters(); |
| 1357 | return true; |
| 1358 | } |
| 1359 | |
| 1360 | /* Check the current parent interval before choosing the runner status. Keep |
| 1361 | * counters and routing intact: the automatic exit writer still follows, and |
no outgoing calls
no test coverage detected