From 9adacfb26a32090435e84067a2a62d32d2ce01f1 Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Fri, 17 Jun 2011 11:30:56 -0700 Subject: [PATCH] Adding a test case for getcwd and related functions. --- src/test/run-pass/lib-path.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/test/run-pass/lib-path.rs diff --git a/src/test/run-pass/lib-path.rs b/src/test/run-pass/lib-path.rs new file mode 100644 index 00000000000..fe4fcfef254 --- /dev/null +++ b/src/test/run-pass/lib-path.rs @@ -0,0 +1,17 @@ +// xfail-stage0 + +// Testing a few of the path manipuation functions + +use std; + +import std::fs; +import std::os; + +fn main() { + assert(!fs::path_is_absolute("test-path")); + + log "Current working directory: " + os::getcwd(); + + log fs::make_absolute("test-path"); + log fs::make_absolute("/usr/bin"); +} \ No newline at end of file