diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-03-06 19:09:17 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-03-07 22:37:58 -0800 |
| commit | d661711cc2fb1365ad9f25cbabe3c34550eaafbe (patch) | |
| tree | 569597677a7b99ed9435df0c0253c7300ccf24d6 /src/libcore/os.rs | |
| parent | 9a17ef9b5285bff753e4585f74beebd6fb3cf415 (diff) | |
| download | rust-d661711cc2fb1365ad9f25cbabe3c34550eaafbe.tar.gz rust-d661711cc2fb1365ad9f25cbabe3c34550eaafbe.zip | |
test: Fix tests.
Diffstat (limited to 'src/libcore/os.rs')
| -rw-r--r-- | src/libcore/os.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libcore/os.rs b/src/libcore/os.rs index 97715c41f92..5c73e45364b 100644 --- a/src/libcore/os.rs +++ b/src/libcore/os.rs @@ -313,7 +313,8 @@ pub fn waitpid(pid: pid_t) -> c_int { use libc::funcs::posix01::wait::*; let mut status = 0 as c_int; - fail_unless!((waitpid(pid, &mut status, 0 as c_int) != (-1 as c_int))); + fail_unless!((waitpid(pid, &mut status, 0 as c_int) != + (-1 as c_int))); return status; } } @@ -1309,7 +1310,8 @@ mod tests { #[test] fn path_exists() { fail_unless!((os::path_exists(&Path(".")))); - fail_unless!((!os::path_exists(&Path("test/nonexistent-bogus-path")))); + fail_unless!((!os::path_exists(&Path( + "test/nonexistent-bogus-path")))); } #[test] |
