Skip to content

test/run-fail: Un-xfail a test, make some other xfailed ones compile... #7992

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/test/run-fail/bug-2470-bounds-check-overflow-2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
// xfail-test
// error-pattern:index out of bounds

use std::uint;

fn main() {
let x = ~[1u,2u,3u];

Expand Down
2 changes: 2 additions & 0 deletions src/test/run-fail/bug-2470-bounds-check-overflow-3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
6 changes: 2 additions & 4 deletions src/test/run-fail/too-much-recursion-unwinding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// during unwinding

fn recurse() {
log(debug, "don't optimize me out");
info!("don't optimize me out");
recurse();
}

Expand All @@ -35,9 +35,7 @@ impl Drop for r {
}

fn r(recursed: *mut bool) -> r {
unsafe {
r { recursed: recursed }
}
r { recursed: recursed }
}

fn main() {
Expand Down
9 changes: 4 additions & 5 deletions src/test/run-fail/unwind-misc-1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!();
}
Expand Down