提交 6f7ef1e2 编写于 作者: B Brian Anderson

rustc: Fix tests for sysroot changes

上级 545f0125
......@@ -197,7 +197,7 @@ fn test_rpaths_to_flags() {
#[test]
fn test_prefix_rpath() {
let sysroot = filesearch::get_or_default_sysroot();
let res = get_install_prefix_rpath(sysroot, "triple");
let res = get_install_prefix_rpath(&sysroot, "triple");
let mut d = Path::new(env!("CFG_PREFIX"));
d.push("lib");
d.push(filesearch::rustlibdir());
......@@ -211,7 +211,7 @@ fn test_prefix_rpath() {
#[test]
fn test_prefix_rpath_abs() {
let sysroot = filesearch::get_or_default_sysroot();
let res = get_install_prefix_rpath(sysroot, "triple");
let res = get_install_prefix_rpath(&sysroot, "triple");
assert!(Path::new(res).is_absolute());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册