diff options
| author | Michael Sullivan <sully@msully.net> | 2012-07-14 10:27:09 -0700 |
|---|---|---|
| committer | Michael Sullivan <sully@msully.net> | 2012-07-14 10:27:09 -0700 |
| commit | b1dafe49afafd4650c4071cf64deaea113072eff (patch) | |
| tree | b99278682d222d064fdb3c86812b4040fc0ac82a /src/rustc/back | |
| parent | 08a4440d643fb6f7db90f67b40f9f29c6bdf5228 (diff) | |
| download | rust-b1dafe49afafd4650c4071cf64deaea113072eff.tar.gz rust-b1dafe49afafd4650c4071cf64deaea113072eff.zip | |
Get rid of more deprecated strs on non 64-bit linux platforms.
Diffstat (limited to 'src/rustc/back')
| -rw-r--r-- | src/rustc/back/rpath.rs | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/rustc/back/rpath.rs b/src/rustc/back/rpath.rs index 2e16d92cec8..7062d6e997e 100644 --- a/src/rustc/back/rpath.rs +++ b/src/rustc/back/rpath.rs @@ -314,32 +314,32 @@ mod test { #[test] #[cfg(target_os = "linux")] fn test_rpath_relative() { - let o = session::os_linux; - check not_win32(o); - let res = get_rpath_relative_to_output(o, + let o = session::os_linux; + check not_win32(o); + let res = get_rpath_relative_to_output(o, ~"/usr", ~"bin/rustc", ~"lib/libstd.so"); - assert res == ~"$ORIGIN/../lib"; + assert res == ~"$ORIGIN/../lib"; } #[test] #[cfg(target_os = "freebsd")] fn test_rpath_relative() { - let o = session::os_freebsd; - check not_win32(o); - let res = get_rpath_relative_to_output(o, - "/usr", "bin/rustc", "lib/libstd.so"); - assert res == "$ORIGIN/../lib"; + let o = session::os_freebsd; + check not_win32(o); + let res = get_rpath_relative_to_output(o, + ~"/usr", ~"bin/rustc", ~"lib/libstd.so"); + assert res == ~"$ORIGIN/../lib"; } #[test] #[cfg(target_os = "macos")] fn test_rpath_relative() { - // this is why refinements would be nice - let o = session::os_macos; - check not_win32(o); - let res = get_rpath_relative_to_output(o, "/usr", "bin/rustc", - "lib/libstd.so"); - assert res == "@executable_path/../lib"; + // this is why refinements would be nice + let o = session::os_macos; + check not_win32(o); + let res = get_rpath_relative_to_output(o, ~"/usr", ~"bin/rustc", + ~"lib/libstd.so"); + assert res == ~"@executable_path/../lib"; } #[test] |
