rt/core: port os::list_dir to rust ref #4812

This commit is contained in:
Jeff Olson
2013-02-20 22:46:26 -08:00
committed by Brian Anderson
parent 53db6c7e2a
commit a69a2acfba
9 changed files with 174 additions and 86 deletions

View File

@@ -18,9 +18,9 @@ use sys;
#[cfg(test)] use vec;
#[cfg(test)] use str;
#[cfg(test)] use uint;
#[cfg(test)] use debug;
#[cfg(notest)] use cmp::{Eq, Ord};
use debug;
use uint;
pub mod libc_ {
use libc::c_void;
@@ -504,6 +504,7 @@ pub mod ptr_tests {
}
#[test]
#[should_fail]
#[ignore(cfg(windows))]
pub fn test_ptr_array_each_with_len_null_ptr() {
unsafe {
ptr::array_each_with_len(0 as **libc::c_char, 1, |e| {
@@ -513,6 +514,7 @@ pub mod ptr_tests {
}
#[test]
#[should_fail]
#[ignore(cfg(windows))]
pub fn test_ptr_array_each_null_ptr() {
unsafe {
ptr::array_each(0 as **libc::c_char, |e| {