tkaitchuck/constrandom

Code coverage tools break due to undefined symbol

Closed this issue · 1 comments

Code coverage both with Tarpualin (https://github.com/xd009642/tarpaulin) and intellij's grcov based instrumentation fails with

error: could not compile const-random due to 2 previous errors
Jun 15 14:43:29.604 ERROR cargo_tarpaulin: Failed to compile tests!
error: ../target/debug/deps/libconst_random_macro-d64f87d46f5009b3.so: undefined symbol: __getrandom_custom
--> /../.cargo/registry/src/github.com-1ecc6299db9ec823/const-random-0.1.15/src/lib.rs:16:9
|
16 | pub use const_random_macro::const_random;
| ^^^^^^^^^^^^^^^^^^

Error: "Failed to compile tests!\nerror: /../git-test/di-apps/target/debug/deps/libconst_random_macro-d64f87d46f5009b3.so: undefined symbol: __getrandom_custom\n --> /../.cargo/registry/src/github.com-1ecc6299db9ec823/const-random-0.1.15/src/lib.rs:16:9\n |\n16 | pub use const_random_macro::const_random;\n | ^^^^^^^^^^^^^^^^^^\n\n"

Seems to not be problem with your project. Can run coverage fine here.