summaryrefslogtreecommitdiff
path: root/test/file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/file.cpp')
-rw-r--r--test/file.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/file.cpp b/test/file.cpp
index 9ac151c9..5c978ebf 100644
--- a/test/file.cpp
+++ b/test/file.cpp
@@ -180,7 +180,7 @@ protected:
}
/* Test size(). */
- file.setFileName("/proc/self/exe");
+ file.setFileName(self());
if (file.size() >= 0) {
cerr << "File has valid size before open" << endl;
@@ -277,7 +277,7 @@ protected:
file.close();
/* Test mapping and unmapping. */
- file.setFileName("/proc/self/exe");
+ file.setFileName(self());
file.open(File::OpenModeFlag::ReadOnly);
Span<uint8_t> data = file.map();