[Libreoffice-commits] online.git: loolwsd/test
Michael Meeks
michael.meeks at collabora.com
Wed Oct 5 22:25:43 UTC 2016
loolwsd/test/UnitTileCache.cpp | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
New commits:
commit e04cde410755055efbb4c4070cf21d9779215a08
Author: Michael Meeks <michael.meeks at collabora.com>
Date: Wed Oct 5 23:24:23 2016 +0100
Avoid the returnValue hook - when not needed.
diff --git a/loolwsd/test/UnitTileCache.cpp b/loolwsd/test/UnitTileCache.cpp
index 771f0e3..b827eb5 100644
--- a/loolwsd/test/UnitTileCache.cpp
+++ b/loolwsd/test/UnitTileCache.cpp
@@ -19,8 +19,7 @@
class UnitTileCache: public UnitWSD
{
public:
- UnitTileCache() :
- _retValue(0)
+ UnitTileCache()
{
}
@@ -34,11 +33,6 @@ public:
cacheFile.reset();
}
- virtual void returnValue(int & retValue)
- {
- retValue = _retValue;
- }
-
virtual void invokeTest()
{
// FIXME: push through to the right place to exercise this.
@@ -59,13 +53,10 @@ private:
}
catch (const Poco::Exception& exc)
{
- _retValue = 1;
+ exitTest(TestResult::TEST_FAILED);
}
});
}
-
-private:
- int _retValue;
};
UnitBase *unit_create_wsd(void)
More information about the Libreoffice-commits
mailing list