diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/imapresource/tests/imapmailsyncbenchmark.cpp | 7 | ||||
-rw-r--r-- | examples/mailtransportresource/tests/mailtransporttest.cpp | 5 |
2 files changed, 3 insertions, 9 deletions
diff --git a/examples/imapresource/tests/imapmailsyncbenchmark.cpp b/examples/imapresource/tests/imapmailsyncbenchmark.cpp index 824b769..a53c148 100644 --- a/examples/imapresource/tests/imapmailsyncbenchmark.cpp +++ b/examples/imapresource/tests/imapmailsyncbenchmark.cpp | |||
@@ -90,17 +90,12 @@ private slots: | |||
90 | 90 | ||
91 | void cleanup() | 91 | void cleanup() |
92 | { | 92 | { |
93 | //TODO the shutdown job fails if the resource is already shut down | 93 | VERIFYEXEC(ResourceControl::shutdown(mResourceInstanceIdentifier)); |
94 | // VERIFYEXEC(ResourceControl::shutdown(mResourceInstanceIdentifier)); | ||
95 | ResourceControl::shutdown(mResourceInstanceIdentifier).exec().waitForFinished(); | ||
96 | removeResourceFromDisk(mResourceInstanceIdentifier); | 94 | removeResourceFromDisk(mResourceInstanceIdentifier); |
97 | } | 95 | } |
98 | 96 | ||
99 | void init() | 97 | void init() |
100 | { | 98 | { |
101 | qDebug(); | ||
102 | qDebug() << "-----------------------------------------"; | ||
103 | qDebug(); | ||
104 | VERIFYEXEC(ResourceControl::start(mResourceInstanceIdentifier)); | 99 | VERIFYEXEC(ResourceControl::start(mResourceInstanceIdentifier)); |
105 | } | 100 | } |
106 | 101 | ||
diff --git a/examples/mailtransportresource/tests/mailtransporttest.cpp b/examples/mailtransportresource/tests/mailtransporttest.cpp index e44aa23..410e17b 100644 --- a/examples/mailtransportresource/tests/mailtransporttest.cpp +++ b/examples/mailtransportresource/tests/mailtransporttest.cpp | |||
@@ -41,13 +41,12 @@ private slots: | |||
41 | 41 | ||
42 | void cleanup() | 42 | void cleanup() |
43 | { | 43 | { |
44 | // VERIFYEXEC(ResourceControl::shutdown(mResourceInstanceIdentifier)); | 44 | VERIFYEXEC(ResourceControl::shutdown(mResourceInstanceIdentifier)); |
45 | // removeResourceFromDisk(mResourceInstanceIdentifier); | ||
46 | } | 45 | } |
47 | 46 | ||
48 | void init() | 47 | void init() |
49 | { | 48 | { |
50 | // VERIFYEXEC(ResourceControl::start(mResourceInstanceIdentifier)); | 49 | VERIFYEXEC(ResourceControl::start(mResourceInstanceIdentifier)); |
51 | } | 50 | } |
52 | 51 | ||
53 | void testSendMail() | 52 | void testSendMail() |