Adding a test case for getcwd and related functions.
This commit is contained in:
parent
a40116b398
commit
9adacfb26a
17
src/test/run-pass/lib-path.rs
Normal file
17
src/test/run-pass/lib-path.rs
Normal file
@ -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");
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user