summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/testHelpers.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/testHelpers.cpp b/test/testHelpers.cpp
index 7d78cd2..c769d32 100644
--- a/test/testHelpers.cpp
+++ b/test/testHelpers.cpp
@@ -2,5 +2,7 @@
const std::filesystem::path ANALYSIS_DIRECTORY = []() {
auto xdgRuntimeDir = getenv("XDG_RUNTIME_DIR");
- return std::filesystem::path {xdgRuntimeDir ? xdgRuntimeDir : "/tmp"} / "ilt-output";
+ auto out = std::filesystem::path {xdgRuntimeDir ? xdgRuntimeDir : "/tmp"} / "ilt-output";
+ std::filesystem::create_directories(out);
+ return out;
}();