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

It seems that grcov can't work with cxx bridge #1175

Open
MochiXu opened this issue Feb 7, 2024 · 1 comment
Open

It seems that grcov can't work with cxx bridge #1175

MochiXu opened this issue Feb 7, 2024 · 1 comment

Comments

@MochiXu
Copy link

MochiXu commented Feb 7, 2024

My rust project is a FFI library for cpp, it integrates with cxx library.
When generate coverage report, errors happened.

❯ grcov . -s . --binary-path ./target/debug/ -t cobertura --branch --ignore-not-existing -o .                       
03:57:01 [ERROR] A panic occurred at /home/mochix/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/grcov-0.8.19/src/llvm_tools.rs:110: 
Failed to open directory '"./target/debug/"': File system loop found: ./target/debug/build/tantivy_search-125cdd8efd245d38/out/cxxbridge/crate/tantivy_search/build/cargo/build/x86_64-unknown-linux-gnu/relwithdebinfo/build/tantivy_search-eef39e5ef494680d/out/cxxbridge/crate/tantivy_search points to an ancestor ./target/debug/build/tantivy_search-125cdd8efd245d38/out/cxxbridge/crate/tantivy_search
@MochiXu
Copy link
Author

MochiXu commented Feb 7, 2024

This does nod work even with the ignore field added

❯ grcov . -s . --binary-path ./target/debug/ -t cobertura --branch --ignore "./target/debug/build/tantivy_search-125cdd8efd245d38/out/cxxbridge/" -o .          
04:48:52 [ERROR] A panic occurred at /home/mochix/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/grcov-0.8.19/src/llvm_tools.rs:110: 
Failed to open directory '"./target/debug/"': File system loop found: ./target/debug/build/tantivy_search-125cdd8efd245d38/out/cxxbridge/crate/tantivy_search/build/cargo/build/x86_64-unknown-linux-gnu/relwithdebinfo/build/tantivy_search-eef39e5ef494680d/out/cxxbridge/crate/tantivy_search points to an ancestor ./target/debug/build/tantivy_search-125cdd8efd245d38/out/cxxbridge/crate/tantivy_search

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