summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2012-01-09 16:11:25 -0800
committerGraydon Hoare <graydon@mozilla.com>2012-01-09 16:12:47 -0800
commitf6ecbe88ca67769ccb9def337ada9ae25235e00e (patch)
tree292d5c5620c939069664e515bf1ecd1d31ed0ade /src/comp
parenta736669fb686d1a44f47d9624a9ed2aa1e072413 (diff)
Fix rpath bug.
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/back/rpath.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/back/rpath.rs b/src/comp/back/rpath.rs
index 06c866fc926..91f025308e0 100644
--- a/src/comp/back/rpath.rs
+++ b/src/comp/back/rpath.rs
@@ -218,8 +218,8 @@ mod test {
     #[test]
     fn test_prefix_rpath() {
         let res = get_install_prefix_rpath("/usr/lib", "triple");
-        assert str::ends_with(res, #env("CFG_PREFIX")
-                              + "/lib/rustc/triple/lib");
+        let d = fs::connect(#env("CFG_PREFIX"), "/lib/rustc/triple/lib");
+        assert str::ends_with(res, d);
     }
 
     #[test]