about summary refs log tree commit diff
path: root/src/librustc/back/rpath.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc/back/rpath.rs')
-rw-r--r--src/librustc/back/rpath.rs34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/librustc/back/rpath.rs b/src/librustc/back/rpath.rs
index cc1168bd79d..49935eea0e1 100644
--- a/src/librustc/back/rpath.rs
+++ b/src/librustc/back/rpath.rs
@@ -212,14 +212,14 @@ mod test {
     use driver::session;
 
     #[test]
-    pub fn test_rpaths_to_flags() {
+    fn test_rpaths_to_flags() {
         let flags = rpaths_to_flags(~[Path("path1"),
                                       Path("path2")]);
         assert!(flags == ~[~"-Wl,-rpath,path1", ~"-Wl,-rpath,path2"]);
     }
 
     #[test]
-    pub fn test_prefix_rpath() {
+    fn test_prefix_rpath() {
         let res = get_install_prefix_rpath("triple");
         let d = Path(env!("CFG_PREFIX"))
             .push_rel(&Path("lib/rustc/triple/lib"));
@@ -230,13 +230,13 @@ mod test {
     }
 
     #[test]
-    pub fn test_prefix_rpath_abs() {
+    fn test_prefix_rpath_abs() {
         let res = get_install_prefix_rpath("triple");
         assert!(res.is_absolute);
     }
 
     #[test]
-    pub fn test_minimize1() {
+    fn test_minimize1() {
         let res = minimize_rpaths([Path("rpath1"),
                                    Path("rpath2"),
                                    Path("rpath1")]);
@@ -244,7 +244,7 @@ mod test {
     }
 
     #[test]
-    pub fn test_minimize2() {
+    fn test_minimize2() {
         let res = minimize_rpaths(~[Path("1a"), Path("2"), Path("2"),
                                     Path("1a"), Path("4a"),Path("1a"),
                                     Path("2"), Path("3"), Path("4a"),
@@ -253,7 +253,7 @@ mod test {
     }
 
     #[test]
-    pub fn test_relative_to1() {
+    fn test_relative_to1() {
         let p1 = Path("/usr/bin/rustc");
         let p2 = Path("/usr/lib/mylib");
         let res = get_relative_to(&p1, &p2);
@@ -261,7 +261,7 @@ mod test {
     }
 
     #[test]
-    pub fn test_relative_to2() {
+    fn test_relative_to2() {
         let p1 = Path("/usr/bin/rustc");
         let p2 = Path("/usr/bin/../lib/mylib");
         let res = get_relative_to(&p1, &p2);
@@ -269,7 +269,7 @@ mod test {
     }
 
     #[test]
-    pub fn test_relative_to3() {
+    fn test_relative_to3() {
         let p1 = Path("/usr/bin/whatever/rustc");
         let p2 = Path("/usr/lib/whatever/mylib");
         let res = get_relative_to(&p1, &p2);
@@ -277,7 +277,7 @@ mod test {
     }
 
     #[test]
-    pub fn test_relative_to4() {
+    fn test_relative_to4() {
         let p1 = Path("/usr/bin/whatever/../rustc");
         let p2 = Path("/usr/lib/whatever/mylib");
         let res = get_relative_to(&p1, &p2);
@@ -285,7 +285,7 @@ mod test {
     }
 
     #[test]
-    pub fn test_relative_to5() {
+    fn test_relative_to5() {
         let p1 = Path("/usr/bin/whatever/../rustc");
         let p2 = Path("/usr/lib/whatever/../mylib");
         let res = get_relative_to(&p1, &p2);
@@ -293,7 +293,7 @@ mod test {
     }
 
     #[test]
-    pub fn test_relative_to6() {
+    fn test_relative_to6() {
         let p1 = Path("/1");
         let p2 = Path("/2/3");
         let res = get_relative_to(&p1, &p2);
@@ -301,7 +301,7 @@ mod test {
     }
 
     #[test]
-    pub fn test_relative_to7() {
+    fn test_relative_to7() {
         let p1 = Path("/1/2");
         let p2 = Path("/3");
         let res = get_relative_to(&p1, &p2);
@@ -309,7 +309,7 @@ mod test {
     }
 
     #[test]
-    pub fn test_relative_to8() {
+    fn test_relative_to8() {
         let p1 = Path("/home/brian/Dev/rust/build/").push_rel(
             &Path("stage2/lib/rustc/i686-unknown-linux-gnu/lib/librustc.so"));
         let p2 = Path("/home/brian/Dev/rust/build/stage2/bin/..").push_rel(
@@ -324,7 +324,7 @@ mod test {
     #[test]
     #[cfg(target_os = "linux")]
     #[cfg(target_os = "andorid")]
-    pub fn test_rpath_relative() {
+    fn test_rpath_relative() {
       let o = session::os_linux;
       let res = get_rpath_relative_to_output(o,
             &Path("bin/rustc"), &Path("lib/libstd.so"));
@@ -333,7 +333,7 @@ mod test {
 
     #[test]
     #[cfg(target_os = "freebsd")]
-    pub fn test_rpath_relative() {
+    fn test_rpath_relative() {
         let o = session::os_freebsd;
         let res = get_rpath_relative_to_output(o,
             &Path("bin/rustc"), &Path("lib/libstd.so"));
@@ -342,7 +342,7 @@ mod test {
 
     #[test]
     #[cfg(target_os = "macos")]
-    pub fn test_rpath_relative() {
+    fn test_rpath_relative() {
         // this is why refinements would be nice
         let o = session::os_macos;
         let res = get_rpath_relative_to_output(o,
@@ -352,7 +352,7 @@ mod test {
     }
 
     #[test]
-    pub fn test_get_absolute_rpath() {
+    fn test_get_absolute_rpath() {
         let res = get_absolute_rpath(&Path("lib/libstd.so"));
         debug!("test_get_absolute_rpath: %s vs. %s",
                res.to_str(),