Another round of test fixes from previous commits
This commit is contained in:
parent
3a3eefc5c3
commit
86a321b65d
19 changed files with 312 additions and 75 deletions
|
|
@ -67,7 +67,8 @@ pub fn main() {
|
|||
call_that(|x, y| *x + *y - z);
|
||||
|
||||
call_cramped(|| 1, || unsafe {
|
||||
cast::transmute(&100)
|
||||
static a: uint = 100;
|
||||
cast::transmute(&a)
|
||||
});
|
||||
|
||||
// External functions
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@
|
|||
//
|
||||
// See #9341
|
||||
|
||||
use std::rt::io;
|
||||
use std::rt::io::process::{Process, ProcessConfig, CreatePipe, Ignored};
|
||||
use std::rt::io::{Reader, Writer};
|
||||
use std::str;
|
||||
|
||||
#[test]
|
||||
|
|
@ -55,10 +55,10 @@ fn smoke_failure() {
|
|||
cwd: None,
|
||||
io: io,
|
||||
};
|
||||
let p = Process::new(args);
|
||||
assert!(p.is_some());
|
||||
let mut p = p.unwrap();
|
||||
assert!(p.wait() != 0);
|
||||
match io::result(|| Process::new(args)) {
|
||||
Ok(*) => fail!(),
|
||||
Err(*) => {}
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue