summaryrefslogtreecommitdiff
path: root/test/test_unistd.rs
diff options
context:
space:
mode:
authorPhilipp Keller <philipp.keller@gmail.com>2016-09-06 17:17:21 +0200
committerPhilipp Keller <philipp.keller@gmail.com>2016-09-06 17:17:21 +0200
commit8fbd8e91ff9ef518287bb4f2a012d3f62332f1ca (patch)
tree4752ab24469eef533fcc81f8cfd9daf9c15e03f7 /test/test_unistd.rs
parent8b1828a5cd7c133156fc2bac703136e6d5abd31d (diff)
downloadnix-8fbd8e91ff9ef518287bb4f2a012d3f62332f1ca.zip
made it running with rust 1.2.0: the code for getcwd is now an exact copy of the implementation in std
Diffstat (limited to 'test/test_unistd.rs')
-rw-r--r--test/test_unistd.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_unistd.rs b/test/test_unistd.rs
index 26746426..06a9cd99 100644
--- a/test/test_unistd.rs
+++ b/test/test_unistd.rs
@@ -131,7 +131,7 @@ fn test_getcwd() {
} else {
"/tmp/"
};
- let mut tmp_dir = TempDir::new_in(base, "test_getcwd").expect("create temp dir").into_path();
+ let mut tmp_dir = TempDir::new_in(base, "test_getcwd").unwrap().into_path();
assert!(chdir(tmp_dir.as_path()).is_ok());
assert_eq!(getcwd().unwrap(), tmp_dir);