diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2020-07-03 16:41:20 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2020-07-03 16:41:20 +0300 |
commit | 64ae31a478a2fa51dd0d8ad8f6e0ec258e34093a (patch) | |
tree | e7e64624de5a99ab2a645ebe95c4908f27e97457 /test | |
parent | 81d8b49ca2b05586f9859c6058d318f4e6f11aa0 (diff) |
Fix perhaps the cause of appveyor failing.
Diffstat (limited to 'test')
-rw-r--r-- | test/tests/clone_extents.cpp | 2 | ||||
-rw-r--r-- | test/tests/process_handle.cpp | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/test/tests/clone_extents.cpp b/test/tests/clone_extents.cpp index b3917f16..315b3427 100644 --- a/test/tests/clone_extents.cpp +++ b/test/tests/clone_extents.cpp @@ -198,7 +198,7 @@ static inline void TestCloneOrCopyFileWhole() << std::endl; #ifndef __APPLE__ // Mac OS has a broken extent enumeration API, so we just do straight copies on it - BOOST_CHECK(abs((long) src_stat.st_blocks - (long) dest_stat.st_blocks) < ((long) src_stat.st_blocks / 8)); + BOOST_CHECK(abs((long) src_stat.st_blocks - (long) dest_stat.st_blocks) < ((long) src_stat.st_blocks / 4)); #endif for(size_t n = 0; n < maximum_extent; n++) diff --git a/test/tests/process_handle.cpp b/test/tests/process_handle.cpp index 444aafc2..3fb8284b 100644 --- a/test/tests/process_handle.cpp +++ b/test/tests/process_handle.cpp @@ -36,9 +36,12 @@ static inline void TestProcessHandle(bool with_redirection) { std::cout << "My process executable's path is " << myexepath << std::endl; auto myenv = self.environment(); std::cout << "My process environment contains:"; - for(auto &i : *myenv) + if(myenv) { - std::cout << "\n " << i; + for(auto &i : *myenv) + { + std::cout << "\n " << i; + } } std::cout << "\n" << std::endl; llfio::process_handle::flag flags = llfio::process_handle::flag::wait_on_close; |