From 6593563e46d025aa0eb7a12a34085b7337b62c5b Mon Sep 17 00:00:00 2001 From: Christian Poveda Date: Wed, 18 Sep 2019 16:46:41 -0500 Subject: [PATCH] Check that getcwd does not error --- tests/run-pass/get_current_dir.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/run-pass/get_current_dir.rs diff --git a/tests/run-pass/get_current_dir.rs b/tests/run-pass/get_current_dir.rs new file mode 100644 index 00000000000..d8e6c225e96 --- /dev/null +++ b/tests/run-pass/get_current_dir.rs @@ -0,0 +1,5 @@ +// ignore-windows: TODO the windows hook is not done yet + +fn main() { + std::env::current_dir().unwrap(); +}