Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit code is 0 even in case of fatal error #1160

Open
avandecreme opened this issue Jan 3, 2024 · 0 comments
Open

Exit code is 0 even in case of fatal error #1160

avandecreme opened this issue Jan 3, 2024 · 0 comments

Comments

@avandecreme
Copy link

For example if I have a corrupted profraw file, the following is printed to stderr:

warning: /tmp/.tmp9VFcUq/foo-1-11510002822451752252_0_1.profraw: invalid instrumentation profile data (file header is corrupt)
error: no profile can be merged
14:55:09 [ERROR] Error while executing llvm tools: Failure while running "/usr/local/rustup/toolchains/1.74.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/llvm-profdata" "merge" "-f" "-" "-sparse" "-o" "/tmp/.tmp9VFcUq/0/grcov.profdata"

However, grcov still returns with exit code 0 so in my case, the CI doesn't detect the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant