test suite: cap-std-sync test environment does not support fdflags sync
This commit is contained in:
@@ -4,6 +4,7 @@ pub struct TestConfig {
|
||||
no_fd_allocate: bool,
|
||||
no_rename_dir_to_empty_dir: bool,
|
||||
no_dangling_directory: bool,
|
||||
no_fdflags_sync_support: bool,
|
||||
}
|
||||
|
||||
enum ErrnoMode {
|
||||
@@ -25,12 +26,14 @@ impl TestConfig {
|
||||
let no_fd_allocate = std::env::var("NO_FD_ALLOCATE").is_ok();
|
||||
let no_rename_dir_to_empty_dir = std::env::var("NO_RENAME_DIR_TO_EMPTY_DIR").is_ok();
|
||||
let no_dangling_directory = std::env::var("NO_DANGLING_DIRECTORY").is_ok();
|
||||
let no_fdflags_sync_support = std::env::var("NO_FDFLAGS_SYNC_SUPPORT").is_ok();
|
||||
TestConfig {
|
||||
errno_mode,
|
||||
no_dangling_symlinks,
|
||||
no_fd_allocate,
|
||||
no_rename_dir_to_empty_dir,
|
||||
no_dangling_directory,
|
||||
no_fdflags_sync_support,
|
||||
}
|
||||
}
|
||||
pub fn errno_expect_unix(&self) -> bool {
|
||||
@@ -57,4 +60,7 @@ impl TestConfig {
|
||||
pub fn support_dangling_directory(&self) -> bool {
|
||||
!self.no_dangling_directory
|
||||
}
|
||||
pub fn support_fdflags_sync(&self) -> bool {
|
||||
!self.no_fdflags_sync_support
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user