main.cpp 594 Bytes
Newer Older
Aard's avatar
Aard committed
1 2 3 4 5 6 7 8 9
/**
 * @file main.cpp
 * @copyright 2012 Jolla Ltd.
 * @author Bernd Wachter <bernd.wachter@jollamobile.com>
 * @date 2012
 */

#include <QtTest/QtTest>

10
#include "libssu/sandbox_p.h"
Aard's avatar
Aard committed
11 12
#include "urlresolvertest.cpp"

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
    UrlResolverTest urlResolverTest;
Aard's avatar
Aard committed
22

23 24
    if (QTest::qExec(&urlResolverTest, argc, argv))
        return 1;
Aard's avatar
Aard committed
25

26
    return 0;
Aard's avatar
Aard committed
27
}