test/run-fail: Un-xfail a test, make some other xfailed ones compile (they still don't work).
This commit is contained in:
parent
43b1eab23b
commit
de2b5c50cd
4 changed files with 10 additions and 9 deletions
|
@ -11,6 +11,8 @@
|
||||||
// xfail-test
|
// xfail-test
|
||||||
// error-pattern:index out of bounds
|
// error-pattern:index out of bounds
|
||||||
|
|
||||||
|
use std::uint;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let x = ~[1u,2u,3u];
|
let x = ~[1u,2u,3u];
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
// xfail-test
|
// xfail-test
|
||||||
// error-pattern:index out of bounds
|
// error-pattern:index out of bounds
|
||||||
|
|
||||||
|
use std::u64;
|
||||||
|
|
||||||
#[cfg(target_arch="x86")]
|
#[cfg(target_arch="x86")]
|
||||||
fn main() {
|
fn main() {
|
||||||
let x = ~[1u,2u,3u];
|
let x = ~[1u,2u,3u];
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
// during unwinding
|
// during unwinding
|
||||||
|
|
||||||
fn recurse() {
|
fn recurse() {
|
||||||
log(debug, "don't optimize me out");
|
info!("don't optimize me out");
|
||||||
recurse();
|
recurse();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,9 +35,7 @@ impl Drop for r {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn r(recursed: *mut bool) -> r {
|
fn r(recursed: *mut bool) -> r {
|
||||||
unsafe {
|
r { recursed: recursed }
|
||||||
r { recursed: recursed }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -8,17 +8,16 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// xfail-test - issue #5512, fails but exits with 0
|
// exec-env:RUST_NEWRT=1
|
||||||
|
|
||||||
// error-pattern:fail
|
// error-pattern:fail
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let count = @mut 0u;
|
let count = @mut 0u;
|
||||||
let mut map = std::hashmap::HashMap::new();
|
let mut map = std::hashmap::HashMap::new();
|
||||||
let mut arr = ~[];
|
let mut arr = ~[];
|
||||||
for uint::range(0u, 10u) |i| {
|
for std::uint::range(0u, 10u) |i| {
|
||||||
arr += ~[@~"key stuff"];
|
arr.push(@~"key stuff");
|
||||||
map.insert(arr.clone(), arr + ~[@~"value stuff"]);
|
map.insert(arr.clone(), arr + &[@~"value stuff"]);
|
||||||
if arr.len() == 5 {
|
if arr.len() == 5 {
|
||||||
fail!();
|
fail!();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue