From 0d5ac30e49c86e9533d33f68a06bcb9ca41e93fa Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sun, 10 Nov 2024 16:21:26 -0600 Subject: [PATCH] refactor --- repertory/repertory_test/include/fixtures/fuse_fixture.hpp | 2 +- ...rive_create_test.cpp => fuse_drive_create_and_open_test.cpp} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename repertory/repertory_test/src/{fuse_drive_create_test.cpp => fuse_drive_create_and_open_test.cpp} (100%) diff --git a/repertory/repertory_test/include/fixtures/fuse_fixture.hpp b/repertory/repertory_test/include/fixtures/fuse_fixture.hpp index 9cce1618..5995519b 100644 --- a/repertory/repertory_test/include/fixtures/fuse_fixture.hpp +++ b/repertory/repertory_test/include/fixtures/fuse_fixture.hpp @@ -256,7 +256,7 @@ public: file_name += std::to_string(++idx); auto file_path = utils::path::combine(mount_location, {file_name}); - auto handle = open(file_path.c_str(), O_CREAT | O_RDWR, perms); + auto handle = open(file_path.c_str(), O_CREAT | O_EXCL | O_RDWR, perms); EXPECT_LE(1, handle); auto opt_size = utils::file::file{file_path}.size(); diff --git a/repertory/repertory_test/src/fuse_drive_create_test.cpp b/repertory/repertory_test/src/fuse_drive_create_and_open_test.cpp similarity index 100% rename from repertory/repertory_test/src/fuse_drive_create_test.cpp rename to repertory/repertory_test/src/fuse_drive_create_and_open_test.cpp