diff options
author | Jens Carl <j.carl43@gmx.de> | 2017-09-02 07:46:53 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2017-11-08 22:18:40 +0100 |
commit | f5765d9f621bdc8fd0e1ac5eec1dcab9ae5b5d06 (patch) | |
tree | 2e6417fea2b34b3ae57d6293827d8fc5caf74e5e /sc/qa/extras/scdatapilottableobj.cxx | |
parent | beff25128c7f53125d487a11caa70a3060dcc785 (diff) |
Improve sc/ UNO API unit tests
Improve sc/ UNO API unit tests by adding a CPPUNIT_ASSERT with
NUMBER_OF_TESTS in setUp(). Makes it easier to spot a mismatch between
actual and expected number of tests (you get a cppunit message instead
of a crash without an explanation).
Change-Id: I7621d8afde3bebbf94cfc3923ad2c12e249ed4c2
Reviewed-on: https://gerrit.libreoffice.org/41829
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc/qa/extras/scdatapilottableobj.cxx')
-rw-r--r-- | sc/qa/extras/scdatapilottableobj.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/qa/extras/scdatapilottableobj.cxx b/sc/qa/extras/scdatapilottableobj.cxx index 8ce6d6be9028..beaaeae7f4a1 100644 --- a/sc/qa/extras/scdatapilottableobj.cxx +++ b/sc/qa/extras/scdatapilottableobj.cxx @@ -142,6 +142,7 @@ uno::Reference< uno::XInterface > ScDataPilotTableObj::initDP2() void ScDataPilotTableObj::setUp() { nTest++; + CPPUNIT_ASSERT(nTest <= NUMBER_OF_TESTS); CalcUnoApiTest::setUp(); } |