summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahooinc.com>2023-07-14 14:51:30 +0200
committerGitHub <noreply@github.com>2023-07-14 14:51:30 +0200
commit7497b74e16ae7381e48243f89f2e8b0c80d7bf77 (patch)
tree1917028d491ffd4cab137a909ecad58fffa6a076 /searchlib
parent5bd9ed162df1a3d20bf745288f1acdca291fb553 (diff)
parentfdf03510b6689db97f5acf581bc4818539cc8aed (diff)
Merge pull request #27782 from vespa-engine/toregge/use-std-filesytem-remove-in-attribute-file-writer-unit-test
Use std::filesystem::remove in attribute file writer unit test.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/tests/attribute/attributefilewriter/attributefilewriter_test.cpp4
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;