| 1564 | |
| 1565 | static void tf_coverage_exit_now(int status) __attribute__((noreturn)); |
| 1566 | static void tf_coverage_exit_now(int status) { |
| 1567 | if (!tf_coverage_continuous && __llvm_profile_write_file() == 0) { |
| 1568 | tf_coverage_fork_marker_lift(); |
| 1569 | } |
| 1570 | void (*libc_exit)(int) = (void (*)(int))dlsym(RTLD_NEXT, "_exit"); |
| 1571 | if (libc_exit) { |
| 1572 | libc_exit(status); |
| 1573 | } |
| 1574 | abort(); |
| 1575 | } |
| 1576 | |
| 1577 | void _exit(int status) { |
| 1578 | tf_coverage_exit_now(status); |
no test coverage detected