Skip to content

Commit 9bb2963

Browse files
Daniel Pattersonbrson
authored andcommitted
core: adding test for os::tmpdir()
1 parent 3f1f6bf commit 9bb2963

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libcore/os.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,11 @@ mod tests {
968968
|s| setenv(~"USERPROFILE", s));
969969
}
970970

971+
#[test]
972+
fn tmpdir() {
973+
option::iter(os::tmpdir(), |s| assert !str::is_empty(s));
974+
}
975+
971976
// Issue #712
972977
#[test]
973978
fn test_list_dir_no_invalid_memory_access() { os::list_dir(~"."); }

0 commit comments

Comments
 (0)