core: adding test for os::tmpdir()

This commit is contained in:
Daniel Patterson 2012-08-21 14:35:58 -04:00 committed by Brian Anderson
parent 3f1f6bf9e3
commit 9bb2963b7e

View file

@ -968,6 +968,11 @@ mod tests {
|s| setenv(~"USERPROFILE", s));
}
#[test]
fn tmpdir() {
option::iter(os::tmpdir(), |s| assert !str::is_empty(s));
}
// Issue #712
#[test]
fn test_list_dir_no_invalid_memory_access() { os::list_dir(~"."); }