From 27ab7009c9c8c6de7bc2f76884608585502e81a8 Mon Sep 17 00:00:00 2001 From: Christian Hohnstaedt Date: Fri, 30 Aug 2024 12:38:07 +0200 Subject: [PATCH] Eport-Test: put all export-data into a sub-directory Do not litter the top-level build directory with all the test export-files. --- test/export.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/export.cpp b/test/export.cpp index 6c282a10..88b747bd 100644 --- a/test/export.cpp +++ b/test/export.cpp @@ -6,6 +6,7 @@ */ #include +#include #include #include @@ -122,6 +123,7 @@ void test_main::exportFormat() int l=0; QModelIndex idx; QModelIndexList list; + QDir d; d.mkpath("testdata"); try { @@ -180,7 +182,7 @@ void test_main::exportFormat() #define xstr(s) str(s) #define str(s) #s -#define AUTOFILE(type) "_" # type "_Line" xstr(__LINE__) ".data" ; +#define AUTOFILE(type) "testdata/" # type "_Line" xstr(__LINE__) ".data" ; const char *file = AUTOFILE(ALLCERT) // Export All certs in one PEM File