diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-07-23 18:55:15 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-07-23 18:55:15 +1000 |
| commit | de2b5c50cd80e8aa65d79c8dd96d9ee93538a012 (patch) | |
| tree | a9c98a1592c3388dd49146aeb4a381e14c1293c9 | |
| parent | 43b1eab23be7ce818efa6a0f79facb9134f615c3 (diff) | |
| download | rust-de2b5c50cd80e8aa65d79c8dd96d9ee93538a012.tar.gz rust-de2b5c50cd80e8aa65d79c8dd96d9ee93538a012.zip | |
test/run-fail: Un-xfail a test, make some other xfailed ones compile (they still don't work).
4 files changed, 10 insertions, 9 deletions
diff --git a/src/test/run-fail/bug-2470-bounds-check-overflow-2.rs b/src/test/run-fail/bug-2470-bounds-check-overflow-2.rs index 6eb8090af95..fa8cd005c04 100644 --- a/src/test/run-fail/bug-2470-bounds-check-overflow-2.rs +++ b/src/test/run-fail/bug-2470-bounds-check-overflow-2.rs @@ -11,6 +11,8 @@ // xfail-test // error-pattern:index out of bounds +use std::uint; + fn main() { let x = ~[1u,2u,3u]; diff --git a/src/test/run-fail/bug-2470-bounds-check-overflow-3.rs b/src/test/run-fail/bug-2470-bounds-check-overflow-3.rs index 8aec9782bf7..2a5b4543576 100644 --- a/src/test/run-fail/bug-2470-bounds-check-overflow-3.rs +++ b/src/test/run-fail/bug-2470-bounds-check-overflow-3.rs @@ -11,6 +11,8 @@ // xfail-test // error-pattern:index out of bounds +use std::u64; + #[cfg(target_arch="x86")] fn main() { let x = ~[1u,2u,3u]; diff --git a/src/test/run-fail/too-much-recursion-unwinding.rs b/src/test/run-fail/too-much-recursion-unwinding.rs index 16d0fe34668..04dea449172 100644 --- a/src/test/run-fail/too-much-recursion-unwinding.rs +++ b/src/test/run-fail/too-much-recursion-unwinding.rs @@ -15,7 +15,7 @@ // during unwinding fn recurse() { - log(debug, "don't optimize me out"); + info!("don't optimize me out"); recurse(); } @@ -35,9 +35,7 @@ impl Drop for r { } fn r(recursed: *mut bool) -> r { - unsafe { - r { recursed: recursed } - } + r { recursed: recursed } } fn main() { diff --git a/src/test/run-fail/unwind-misc-1.rs b/src/test/run-fail/unwind-misc-1.rs index 75af701cede..bfcd2e8f8db 100644 --- a/src/test/run-fail/unwind-misc-1.rs +++ b/src/test/run-fail/unwind-misc-1.rs @@ -8,17 +8,16 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// xfail-test - issue #5512, fails but exits with 0 - +// exec-env:RUST_NEWRT=1 // error-pattern:fail fn main() { let count = @mut 0u; let mut map = std::hashmap::HashMap::new(); let mut arr = ~[]; - for uint::range(0u, 10u) |i| { - arr += ~[@~"key stuff"]; - map.insert(arr.clone(), arr + ~[@~"value stuff"]); + for std::uint::range(0u, 10u) |i| { + arr.push(@~"key stuff"); + map.insert(arr.clone(), arr + &[@~"value stuff"]); if arr.len() == 5 { fail!(); } |
