Add a test for fd_readdir

This commit is contained in:
Jakub Konka
2019-08-28 22:37:48 +02:00
committed by Jakub Konka
parent 3609a82dc9
commit aa28a6d697
2 changed files with 15 additions and 2 deletions

View File

@@ -154,11 +154,23 @@ fn avoid_keywords(name: &str) -> &str {
}
cfg_if::cfg_if! {
if #[cfg(not(windows))] {
if #[cfg(linux)] {
/// Ignore tests that aren't supported yet.
fn ignore(_testsuite: &str, _name: &str) -> bool {
false
}
} else if #[cfg(not(any(linux, windows)))] {
/// Ignore tests that aren't supported yet.
fn ignore(testsuite: &str, name: &str) -> bool {
if testsuite == "misc_testsuite" {
match name {
"fd_readdir" => true,
_ => false,
}
} else {
unreachable!()
}
}
} else {
/// Ignore tests that aren't supported yet.
fn ignore(testsuite: &str, name: &str) -> bool {
@@ -169,6 +181,7 @@ cfg_if::cfg_if! {
"symlink_loop" => true,
"clock_time_get" => true,
"truncation_rights" => true,
"fd_readdir" => true,
_ => false,
}
} else {