Skip to content

Commit

Permalink
Eport-Test: put all export-data into a sub-directory
Browse files Browse the repository at this point in the history
Do not litter the top-level build directory with
all the test export-files.
  • Loading branch information
chris2511 committed Aug 30, 2024
1 parent 5528c12 commit 27ab700
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

#include <QTest>
#include <QDir>

#include <sys/types.h>
#include <sys/stat.h>
Expand Down Expand Up @@ -122,6 +123,7 @@ void test_main::exportFormat()
int l=0;
QModelIndex idx;
QModelIndexList list;
QDir d; d.mkpath("testdata");

try {

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 27ab700

Please sign in to comment.