loolwsd/test/UnitTileCache.cpp |   13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

New commits:
commit e04cde410755055efbb4c4070cf21d9779215a08
Author: Michael Meeks <michael.me...@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)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to