@@ -314,32 +314,32 @@ mod test {
314
314
#[ test]
315
315
#[ cfg( target_os = "linux" ) ]
316
316
fn test_rpath_relative ( ) {
317
- let o = session:: os_linux;
318
- check not_win32( o) ;
319
- let res = get_rpath_relative_to_output ( o,
317
+ let o = session:: os_linux;
318
+ check not_win32( o) ;
319
+ let res = get_rpath_relative_to_output ( o,
320
320
~"/usr", ~"bin/rustc", ~"lib/libstd. so ") ;
321
- assert res == ~"$ORIGIN/../lib";
321
+ assert res == ~"$ORIGIN/../lib";
322
322
}
323
323
324
324
#[ test]
325
325
#[ cfg( target_os = "freebsd" ) ]
326
326
fn test_rpath_relative ( ) {
327
- let o = session:: os_freebsd;
328
- check not_win32( o) ;
329
- let res = get_rpath_relative_to_output ( o,
330
- "/usr" , "bin/rustc" , "lib/libstd.so" ) ;
331
- assert res == "$ORIGIN/../lib" ;
327
+ let o = session:: os_freebsd;
328
+ check not_win32( o) ;
329
+ let res = get_rpath_relative_to_output ( o,
330
+ ~ "/usr", ~ "bin/rustc", ~ "lib/libstd. so ") ;
331
+ assert res == ~ "$ORIGIN/../lib";
332
332
}
333
333
334
334
#[ test]
335
335
#[ cfg( target_os = "macos" ) ]
336
336
fn test_rpath_relative ( ) {
337
- // this is why refinements would be nice
338
- let o = session:: os_macos;
339
- check not_win32( o) ;
340
- let res = get_rpath_relative_to_output ( o, "/usr" , "bin/rustc" ,
341
- "lib/libstd.so" ) ;
342
- assert res == "@executable_path/../lib" ;
337
+ // this is why refinements would be nice
338
+ let o = session:: os_macos;
339
+ check not_win32( o) ;
340
+ let res = get_rpath_relative_to_output ( o, ~ "/usr", ~ "bin/rustc",
341
+ ~ "lib/libstd. so ") ;
342
+ assert res == ~ "@executable_path/../lib";
343
343
}
344
344
345
345
#[ test]
0 commit comments