/
main.cpp
27 lines (21 loc) · 554 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
/**
* @file main.cpp
* @copyright 2012 Jolla Ltd.
* @author Martin Kampas <martin.kampas@tieto.com>
* @date 2012
*/
#include <QtTest/QtTest>
#include "libssu/sandbox_p.h"
#include "ssutest.h"
13
14
15
16
17
18
19
int main(int argc, char **argv)
{
Sandbox sandbox(QString("%1/configroot").arg(LOCATE_DATA_PATH),
Sandbox::UseAsSkeleton, Sandbox::ThisProcess);
if (!sandbox.activate()) {
qFatal("Failed to activate sandbox");
}
20
21
SsuTest ssuTest;
22
23
24
if (QTest::qExec(&ssuTest, argc, argv))
return 1;
25
26
return 0;
27
}