diff --git a/src/comp/back/rpath.rs b/src/comp/back/rpath.rs index 80ace14a4d0..a1bcb8f8bd3 100644 --- a/src/comp/back/rpath.rs +++ b/src/comp/back/rpath.rs @@ -227,7 +227,7 @@ mod test { #[test] fn test_prefix_rpath_abs() { let res = get_install_prefix_rpath("/usr/lib", "triple"); - assert str::starts_with(res, "/"); + assert fs::path_is_absolute(res); } #[test]