diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-02-24 13:49:01 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-02-24 13:49:01 +0530 |
| commit | b182cd7245a999ac702f88c89dcc28811d6fdf8a (patch) | |
| tree | 4d7d5a2e4766e439eb398807e8e66bc4d1b1dcf2 /src/libstd | |
| parent | 2d74b53a034dc538d624f6c3b3ec313d40033415 (diff) | |
| download | rust-b182cd7245a999ac702f88c89dcc28811d6fdf8a.tar.gz rust-b182cd7245a999ac702f88c89dcc28811d6fdf8a.zip | |
Fix integers in tests (fixup #22700)
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/sync/mpsc/select.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sync/rwlock.rs | 4 | ||||
| -rw-r--r-- | src/libstd/sync/task_pool.rs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/sync/mpsc/select.rs b/src/libstd/sync/mpsc/select.rs index b6f93b8e0e5..8de5bbc6206 100644 --- a/src/libstd/sync/mpsc/select.rs +++ b/src/libstd/sync/mpsc/select.rs @@ -473,7 +473,7 @@ mod test { #[test] fn stress() { - static AMT: u32 = 10000; + static AMT: i32 = 10000; let (tx1, rx1) = channel::<i32>(); let (tx2, rx2) = channel::<i32>(); let (tx3, rx3) = channel::<()>(); diff --git a/src/libstd/sync/rwlock.rs b/src/libstd/sync/rwlock.rs index 495a172e245..6fd2a6ed77d 100644 --- a/src/libstd/sync/rwlock.rs +++ b/src/libstd/sync/rwlock.rs @@ -425,8 +425,8 @@ mod tests { #[test] fn frob() { static R: StaticRwLock = RW_LOCK_INIT; - static N: u32 = 10; - static M: u32 = 1000; + static N: usize = 10; + static M: usize = 1000; let (tx, rx) = channel::<()>(); for _ in 0..N { diff --git a/src/libstd/sync/task_pool.rs b/src/libstd/sync/task_pool.rs index 738aeccbe7a..31f3dfd877c 100644 --- a/src/libstd/sync/task_pool.rs +++ b/src/libstd/sync/task_pool.rs @@ -142,7 +142,7 @@ mod test { use super::*; use sync::mpsc::channel; - const TEST_TASKS: u32 = 4; + const TEST_TASKS: usize = 4; #[test] fn test_works() { |
