about summary refs log tree commit diff
path: root/src/libcore/os.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-03-06 19:09:17 -0800
committerPatrick Walton <pcwalton@mimiga.net>2013-03-07 22:37:58 -0800
commitd661711cc2fb1365ad9f25cbabe3c34550eaafbe (patch)
tree569597677a7b99ed9435df0c0253c7300ccf24d6 /src/libcore/os.rs
parent9a17ef9b5285bff753e4585f74beebd6fb3cf415 (diff)
downloadrust-d661711cc2fb1365ad9f25cbabe3c34550eaafbe.tar.gz
rust-d661711cc2fb1365ad9f25cbabe3c34550eaafbe.zip
test: Fix tests.
Diffstat (limited to 'src/libcore/os.rs')
-rw-r--r--src/libcore/os.rs6
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]