about summary refs log tree commit diff
path: root/src/libstd/timer.rs
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-04-16 01:08:52 +1000
committerHuon Wilson <dbau.pp+github@gmail.com>2013-04-16 09:57:47 +1000
commitd3be98e9f5e721b53dccd0a43c2ff58ddd32ac47 (patch)
tree2c1730e5ca7b3352854e92b51a7d0b44e5984438 /src/libstd/timer.rs
parentf10cf26e25c75e148d86dd151a210d9f4a7ece2f (diff)
downloadrust-d3be98e9f5e721b53dccd0a43c2ff58ddd32ac47.tar.gz
rust-d3be98e9f5e721b53dccd0a43c2ff58ddd32ac47.zip
libcore,std,syntax,rustc: move tests into `mod tests`, make them private (no pub mod or pub fn).
Diffstat (limited to 'src/libstd/timer.rs')
-rw-r--r--src/libstd/timer.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/timer.rs b/src/libstd/timer.rs
index 99e772b0c95..c229e72ae5d 100644
--- a/src/libstd/timer.rs
+++ b/src/libstd/timer.rs
@@ -183,13 +183,13 @@ mod test {
     use core::pipes::{stream, SharedChan};
 
     #[test]
-    pub fn test_gl_timer_simple_sleep_test() {
+    fn test_gl_timer_simple_sleep_test() {
         let hl_loop = &uv::global_loop::get();
         sleep(hl_loop, 1u);
     }
 
     #[test]
-    pub fn test_gl_timer_sleep_stress1() {
+    fn test_gl_timer_sleep_stress1() {
         let hl_loop = &uv::global_loop::get();
         for iter::repeat(50u) {
             sleep(hl_loop, 1u);
@@ -197,7 +197,7 @@ mod test {
     }
 
     #[test]
-    pub fn test_gl_timer_sleep_stress2() {
+    fn test_gl_timer_sleep_stress2() {
         let (po, ch) = stream();
         let ch = SharedChan(ch);
         let hl_loop = &uv::global_loop::get();
@@ -241,7 +241,7 @@ mod test {
 
     #[test]
     #[cfg(ignore)]
-    pub fn test_gl_timer_recv_timeout_before_time_passes() {
+    fn test_gl_timer_recv_timeout_before_time_passes() {
         let times = 100;
         let mut successes = 0;
         let mut failures = 0;
@@ -270,7 +270,7 @@ mod test {
     }
 
     #[test]
-    pub fn test_gl_timer_recv_timeout_after_time_passes() {
+    fn test_gl_timer_recv_timeout_after_time_passes() {
         let times = 100;
         let mut successes = 0;
         let mut failures = 0;