Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run: Avoid execve() when measuring test coverage
Normally, we want to save a process and get better signal handling by replacing the `flatpak run` process with bubblewrap. However, when we're doing profiling or measuring coverage, we want to exit cleanly so that profiling data can be recorded, which is done in an atexit() hook. In this situation, bypass the execve() optimization; instead, start bubblewrap in the background, immediately wait for it, and propagate its exit status. Signed-off-by: Simon McVittie <[email protected]>
- Loading branch information