aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/fastos
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2023-07-21 10:26:58 +0200
committerTor Egge <Tor.Egge@online.no>2023-07-21 10:26:58 +0200
commita0a6e0137cc3741160a2d4d12905d65fac927cb0 (patch)
tree7dd49f685d04f92844cb65dae5cb9ce9bab32a25 /vespalib/src/tests/fastos
parent535a452f4a968a73a1f3c1e6a18a1edb2d4ff2c2 (diff)
Use std::filesystem::current_path
Diffstat (limited to 'vespalib/src/tests/fastos')
-rw-r--r--vespalib/src/tests/fastos/file_test.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/vespalib/src/tests/fastos/file_test.cpp b/vespalib/src/tests/fastos/file_test.cpp
index 464861f5784..99c7b858723 100644
--- a/vespalib/src/tests/fastos/file_test.cpp
+++ b/vespalib/src/tests/fastos/file_test.cpp
@@ -18,16 +18,6 @@ struct Generated {
~Generated() { std::filesystem::remove_all(std::filesystem::path("generated")); }
};
-TEST(FileTest, GetCurrentDirTest) {
- std::string currentDir = FastOS_File::getCurrentDirectory();
- EXPECT_FALSE(currentDir.empty());
- EXPECT_TRUE(FastOS_File::SetCurrentDirectory(".."));
- std::string parentDir = FastOS_File::getCurrentDirectory();
- EXPECT_FALSE(parentDir.empty());
- EXPECT_NE(currentDir, parentDir);
- EXPECT_TRUE(FastOS_File::SetCurrentDirectory(currentDir.c_str()));
-}
-
void MemoryMapTestImpl(int mmap_flags) {
Generated guard;
const int bufSize = 1000;