diff options
author | Tor Egge <Tor.Egge@online.no> | 2023-07-14 13:42:27 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2023-07-14 13:42:27 +0200 |
commit | fdf03510b6689db97f5acf581bc4818539cc8aed (patch) | |
tree | 61bde34e578c2aca2677f2531c3a21964d8f2137 /searchlib | |
parent | 04c653308e09f05fbc1dc137d3a4290e47a76054 (diff) |
Use std::filesystem::remove in attribute file writer unit test.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/tests/attribute/attributefilewriter/attributefilewriter_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/tests/attribute/attributefilewriter/attributefilewriter_test.cpp b/searchlib/src/tests/attribute/attributefilewriter/attributefilewriter_test.cpp index c072f722677..82c1839e63b 100644 --- a/searchlib/src/tests/attribute/attributefilewriter/attributefilewriter_test.cpp +++ b/searchlib/src/tests/attribute/attributefilewriter/attributefilewriter_test.cpp @@ -10,7 +10,7 @@ #include <vespa/searchlib/common/fileheadercontext.h> #include <vespa/searchlib/index/dummyfileheadercontext.h> #include <vespa/vespalib/data/databuffer.h> -#include <vespa/fastos/file.h> +#include <filesystem> #include <vespa/log/log.h> LOG_SETUP("attributefilewriter_test"); @@ -24,7 +24,7 @@ namespace { vespalib::string testFileName("test.dat"); vespalib::string hello("Hello world"); -void removeTestFile() { FastOS_File::Delete(testFileName.c_str()); } +void removeTestFile() { std::filesystem::remove(std::filesystem::path(testFileName)); } struct Fixture { TuneFileAttributes _tuneFileAttributes; |