| 59 | } |
| 60 | |
| 61 | void TestCore::initializeNonStatic(Core::Setup mode, const QString& _session) |
| 62 | { |
| 63 | QString session = _session; |
| 64 | if (_session.isEmpty()) { |
| 65 | // use a distinct session name for unit test sessions |
| 66 | // they are temporary (see below) but still - we want to make sure |
| 67 | session = QLatin1String("test-") + QCoreApplication::applicationName(); |
| 68 | } |
| 69 | |
| 70 | if (!d->initialize(mode, session)) { |
| 71 | qFatal("could not initialize the core"); |
| 72 | } |
| 73 | |
| 74 | if (_session.isEmpty()) { |
| 75 | activeSession()->setTemporary(true); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | void TestCore::shutdown() |
| 80 | { |
no test coverage detected