ssu
Loading...
Searching...
No Matches
tests
ut_coreconfig
main.cpp
Go to the documentation of this file.
1
7
8
#include <QtTest/QtTest>
9
10
#include "
libssu/sandbox_p.h
"
11
#include "
coreconfigtest.h
"
12
13
int
main(
int
argc,
char
**argv)
14
{
15
Sandbox
sandbox(QString(
"%1/configroot"
).arg(LOCATE_DATA_PATH),
16
Sandbox::UseAsSkeleton, Sandbox::ThisProcess);
17
if
(!sandbox.activate()) {
18
qFatal(
"Failed to activate sandbox"
);
19
}
20
21
CoreconfigTest
coreconfigTest;
22
23
if
(QTest::qExec(&coreconfigTest, argc, argv))
24
return
1;
25
26
return
0;
27
}
CoreconfigTest
Definition
coreconfigtest.h:14
Sandbox
Helps to redirect file operations into sandbox directory.
Definition
sandbox_p.h:22
coreconfigtest.h
sandbox_p.h
Generated by
1.16.1