diff options
| author | Brian Anderson <banderson@mozilla.com> | 2014-03-26 20:53:01 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2014-03-26 20:53:01 -0700 |
| commit | 6f7ef1e293e2f3a2dba35ff612ac7a4d4b3677d5 (patch) | |
| tree | d1af620e68d38fb8a60012ae67f19423f0cdaa68 | |
| parent | 545f0125272249170b594e9cd42567df51db94aa (diff) | |
| download | rust-6f7ef1e293e2f3a2dba35ff612ac7a4d4b3677d5.tar.gz rust-6f7ef1e293e2f3a2dba35ff612ac7a4d4b3677d5.zip | |
rustc: Fix tests for sysroot changes
| -rw-r--r-- | src/librustc/back/rpath.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/back/rpath.rs b/src/librustc/back/rpath.rs index d548dc6dfb7..c47f9893cd2 100644 --- a/src/librustc/back/rpath.rs +++ b/src/librustc/back/rpath.rs @@ -197,7 +197,7 @@ mod test { #[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 @@ mod test { #[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()); } |
