Skip to content

Commit

Permalink
core: adding test for os::tmpdir()
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Patterson authored and brson committed Aug 21, 2012
1 parent 3f1f6bf commit 9bb2963
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libcore/os.rs
Expand Up @@ -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(~"."); }
Expand Down

0 comments on commit 9bb2963

Please sign in to comment.