immunant / c2rust

Migrate C code to Rust
https://c2rust.com/
Other
3.91k stars 229 forks source link

(`c2rust-analyze/tests`) Use absolute paths for locating test files so it works from all CWDs #933

Closed kkysen closed 1 year ago

kkysen commented 1 year ago

I came across this in debugging #931 and coming up with the fix in #932. When trying to debug the tests, it would use a different working directory, and not be able to find the correct test file paths. This just uses the same (correct) logic that I already used in check_for_missing_tests_for.