Description
Hi, I'm working on an automated test suite for our project with Miri, and we have a number of crates that use FFI in some, but not all, tests. I won't have knowledge about which crates and the tests within those crates call FFI functions.
Is there an easy way to handle this? We want to run as many of our tests as possible under Miri. Right now, my current strategy is to go through stderr after running cargo miri test
on each crate and search through a set of fixed error strings that indicate Miri being unable to run the test rather than identifying UB. However, that's brittle and requires me to know upfront all of the possible unsupported features.
Could we have a different error code be returned for cargo miri test
if a test was unable to finish running due to an unsupported feature? Right now both UB and unsupported features return 1
.
If there were a flag to skip and ignore tests that couldn't run in Miri, that would also work.