Check the current parent interval before choosing the runner status. Keep * counters and routing intact: the automatic exit writer still follows, and * this checked prefix does not certify its outcome or later callbacks. */
| 1361 | * counters and routing intact: the automatic exit writer still follows, and |
| 1362 | * this checked prefix does not certify its outcome or later callbacks. */ |
| 1363 | static void tf_coverage_finish(void) { |
| 1364 | if (!tf_coverage_dir[0] || tf_coverage_write_failed) { |
| 1365 | return; |
| 1366 | } |
| 1367 | #ifndef _WIN32 |
| 1368 | if (getpid() != tf_coverage_channel.owner || tf_coverage_channel_blocked()) { |
| 1369 | return; |
| 1370 | } |
| 1371 | #endif |
| 1372 | if (__llvm_profile_write_file() != 0) { |
| 1373 | tf_coverage_write_failed = true; |
| 1374 | fprintf(stderr, "coverage profile write failed: %s\n", tf_coverage_profile); |
| 1375 | tf_fail_count++; |
| 1376 | } |
| 1377 | } |
| 1378 | |
| 1379 | static bool tf_coverage_suite_dir(char *out, size_t cap) { |
| 1380 | int length = snprintf(out, cap, "%s/%s", tf_coverage_dir, |
no test coverage detected