ssu
tests
ut_deviceinfo
main.cpp
Go to the documentation of this file.
1
8
#include <QtTest/QtTest>
9
10
#include "
libssu/sandbox_p.h
"
11
#include "
deviceinfotest.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
DeviceInfoTest
deviceinfoTest;
22
23
if
(QTest::qExec(&deviceinfoTest, argc, argv))
24
return
1;
25
26
return
0;
27
}
deviceinfotest.h
Sandbox
Helps to redirect file operations into sandbox directory.
Definition:
sandbox_p.h:21
DeviceInfoTest
Definition:
deviceinfotest.h:13
sandbox_p.h
Generated on Thu Oct 8 2020 17:28:23 for ssu by
1.8.17