Skip to content

Commit 9adacfb

Browse files
author
Eric Holk
committed
Adding a test case for getcwd and related functions.
1 parent a40116b commit 9adacfb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/test/run-pass/lib-path.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// xfail-stage0
2+
3+
// Testing a few of the path manipuation functions
4+
5+
use std;
6+
7+
import std::fs;
8+
import std::os;
9+
10+
fn main() {
11+
assert(!fs::path_is_absolute("test-path"));
12+
13+
log "Current working directory: " + os::getcwd();
14+
15+
log fs::make_absolute("test-path");
16+
log fs::make_absolute("/usr/bin");
17+
}

0 commit comments

Comments
 (0)