Skip to content

Commit 6f7ef1e

Browse files
committed
rustc: Fix tests for sysroot changes
1 parent 545f012 commit 6f7ef1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/back/rpath.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ mod test {
197197
#[test]
198198
fn test_prefix_rpath() {
199199
let sysroot = filesearch::get_or_default_sysroot();
200-
let res = get_install_prefix_rpath(sysroot, "triple");
200+
let res = get_install_prefix_rpath(&sysroot, "triple");
201201
let mut d = Path::new(env!("CFG_PREFIX"));
202202
d.push("lib");
203203
d.push(filesearch::rustlibdir());
@@ -211,7 +211,7 @@ mod test {
211211
#[test]
212212
fn test_prefix_rpath_abs() {
213213
let sysroot = filesearch::get_or_default_sysroot();
214-
let res = get_install_prefix_rpath(sysroot, "triple");
214+
let res = get_install_prefix_rpath(&sysroot, "triple");
215215
assert!(Path::new(res).is_absolute());
216216
}
217217

0 commit comments

Comments
 (0)