summaryrefslogtreecommitdiff
path: root/test/TileCacheTests.cpp
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2017-05-12 03:08:20 +0100
committerMichael Meeks <michael.meeks@collabora.com>2017-06-02 18:33:26 +0100
commit097cc58d530e4e40482a4b981306200151088562 (patch)
tree26ac94e3dee1bf1dfb21c921da7c96375f25dee0 /test/TileCacheTests.cpp
parentd4b2badd4e40e2d2e9bd526e6bfef050a7a5f81e (diff)
Run old-style unit tests as a new-style unit test.
This moves the code into the same process, for easier logging & debugging. Disabled initially. Change-Id: Id48b5649ba14deb0a2159ca59e321c7d0ae66dad
Diffstat (limited to 'test/TileCacheTests.cpp')
-rw-r--r--test/TileCacheTests.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/TileCacheTests.cpp b/test/TileCacheTests.cpp
index 16577b3f7..cac391443 100644
--- a/test/TileCacheTests.cpp
+++ b/test/TileCacheTests.cpp
@@ -26,6 +26,7 @@
#include "countloolkits.hpp"
#include "helpers.hpp"
+#include "test.hpp"
using namespace helpers;
@@ -153,9 +154,10 @@ public:
void TileCacheTests::testSimple()
{
- if (!UnitWSD::init(UnitWSD::UnitType::Wsd, ""))
+ if (isStandalone())
{
- throw std::runtime_error("Failed to load wsd unit test library.");
+ if (!UnitWSD::init(UnitWSD::UnitType::Wsd, ""))
+ throw std::runtime_error("Failed to load wsd unit test library.");
}
// Create TileCache and pretend the file was modified as recently as