@ -1143,7 +1143,7 @@ TEST_P(EnvPosixTestWithParam, Preallocation) {
unique_ptr < WritableFile > srcfile ;
unique_ptr < WritableFile > srcfile ;
EnvOptions soptions ;
EnvOptions soptions ;
soptions . use_direct_reads = soptions . use_direct_writes = direct_io_ ;
soptions . use_direct_reads = soptions . use_direct_writes = direct_io_ ;
# if !defined(OS_MACOSX) && !defined(OS_WIN) && !defined(OS_SOLARIS) && !defined(OS_AIX) && !defined(OS_OPENBSD)
# if !defined(OS_MACOSX) && !defined(OS_WIN) && !defined(OS_SOLARIS) && !defined(OS_AIX) && !defined(OS_OPENBSD) && !defined(OS_FREEBSD)
if ( soptions . use_direct_writes ) {
if ( soptions . use_direct_writes ) {
rocksdb : : SyncPoint : : GetInstance ( ) - > SetCallBack (
rocksdb : : SyncPoint : : GetInstance ( ) - > SetCallBack (
" NewWritableFile:O_DIRECT " , [ & ] ( void * arg ) {
" NewWritableFile:O_DIRECT " , [ & ] ( void * arg ) {
@ -1205,7 +1205,7 @@ TEST_P(EnvPosixTestWithParam, ConsistentChildrenAttributes) {
oss < < test : : TmpDir ( env_ ) < < " /testfile_ " < < i ;
oss < < test : : TmpDir ( env_ ) < < " /testfile_ " < < i ;
const std : : string path = oss . str ( ) ;
const std : : string path = oss . str ( ) ;
unique_ptr < WritableFile > file ;
unique_ptr < WritableFile > file ;
# if !defined(OS_MACOSX) && !defined(OS_WIN) && !defined(OS_SOLARIS) && !defined(OS_AIX) && !defined(OS_OPENBSD)
# if !defined(OS_MACOSX) && !defined(OS_WIN) && !defined(OS_SOLARIS) && !defined(OS_AIX) && !defined(OS_OPENBSD) && !defined(OS_FREEBSD)
if ( soptions . use_direct_writes ) {
if ( soptions . use_direct_writes ) {
rocksdb : : SyncPoint : : GetInstance ( ) - > SetCallBack (
rocksdb : : SyncPoint : : GetInstance ( ) - > SetCallBack (
" NewWritableFile:O_DIRECT " , [ & ] ( void * arg ) {
" NewWritableFile:O_DIRECT " , [ & ] ( void * arg ) {