Skip to content

Commit

Permalink
Disable environment-dependent test that fails in CI environments
Browse files Browse the repository at this point in the history
  • Loading branch information
umegane committed Aug 29, 2024
1 parent 0941492 commit 6120e4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/limestone/compaction/online_compaction_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

#include <thread>
#include <sys/stat.h>

#include <boost/filesystem.hpp>

Expand Down Expand Up @@ -983,9 +984,9 @@ TEST_F(online_compaction_test, remove_file_safely_no_exception_for_nonexistent_f
ASSERT_NO_THROW(remove_file_safely(file));
}

#include <sys/stat.h> // chmod用

TEST_F(online_compaction_test, remove_file_safely_fails_to_remove_file) {
// This test is disabled because it is environment-dependent and may not work properly in CI environments.
TEST_F(online_compaction_test, DISABLED_remove_file_safely_fails_to_remove_file) {
boost::filesystem::path test_dir = boost::filesystem::path(location);
boost::filesystem::path file = test_dir / "protected_file.txt";

Expand Down

0 comments on commit 6120e4c

Please sign in to comment.