ssu
main.cpp
Go to the documentation of this file.
1 
8 #include <QtTest/QtTest>
9 
10 #include "libssu/sandbox_p.h"
11 #include "urlresolvertest.cpp"
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  UrlResolverTest urlResolverTest;
22 
23  if (QTest::qExec(&urlResolverTest, argc, argv))
24  return 1;
25 
26  return 0;
27 }
urlresolvertest.cpp
Sandbox
Helps to redirect file operations into sandbox directory.
Definition: sandbox_p.h:21
sandbox_p.h
UrlResolverTest
Definition: urlresolvertest.h:17