libreoffice-online/test
Ashod Nakashian 82560d9657 wsd: test assertion macros
Because the new-style tests are intrustive,
the exception that CppUnit throws on assertion
failures is caught and processed with the
application logic, which is far from ideal,
because it's very difficult to find the
cause of failure.

What we'd like is a way to control what happens
when an test assertion fails, such that we can
properly log/print the failure, and even break
in the debugger.

The new macros allow us to control the behavior
at compile-time and have added flexibility.
For now, they log an assertion failure before
invoking the CPPUNIT macro, and support a
compile-time directive to assert, which is
useful for breaking in the debugger.

Change-Id: If464ba246e3ec747f31496a4215cb73ef735dfaf
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87625
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-03-14 15:45:00 +01:00
..
data UnitRenderShape: update Writer reference SVG 2020-02-27 11:57:07 +01:00
.gitignore
countloolkits.hpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
DeltaTests.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
fakesockettest.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
helpers.hpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
httpcrashtest.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
httpwstest.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
integration-http-server.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
lokassert.hpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
Makefile.am wsd: test assertion macros 2020-03-14 15:45:00 +01:00
run_unit.sh.in test: remove documentation about no longer working CPPUNIT_TEST_NAME variant 2020-01-24 00:09:34 +01:00
test.cpp wsd: improve test logging 2020-02-23 22:04:04 +01:00
test.hpp test: dung out redundant LOOL_TEST_CLIENT_PORT. 2020-01-21 15:07:54 +00:00
TileCacheTests.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
TileQueueTests.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitAdmin.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitBadDocLoad.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitCalc.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitClient.cpp test: simplify and remove obsolete /proc grokking code. 2020-01-21 15:07:54 +00:00
UnitClose.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitConvert.cpp killpoco: removed StringTokenizer from test directory 2019-11-13 09:20:25 +01:00
UnitCopyPaste.cpp killpoco: removed StringTokenizer from test directory 2019-11-13 09:20:25 +01:00
UnitCursor.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitEachView.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitFuzz.cpp Remove unused filterHandleRequest unit test hook. 2020-03-07 14:26:42 +01:00
UnitHosting.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitHTTP.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitInsertDelete.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitLargePaste.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitLoad.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitLoadTorture.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitOAuth.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitOOB.cpp killpoco: removed StringTokenizer from test directory 2019-11-13 09:20:25 +01:00
UnitPasswordProtected.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitPaste.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitPrefork.cpp
UnitRenderingOptions.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitRenderShape.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitSession.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitStorage.cpp
UnitTiffLoad.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitTileCache.cpp
UnitTimeout.cpp killpoco: Don't use POCO for app exit values. 2019-11-07 12:23:47 +01:00
UnitTyping.cpp tdf#130382 - unit test for core fix for text input ordering issue. 2020-02-10 23:23:04 +01:00
UnitUNOCommand.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitWOPI.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitWOPIDocumentConflict.cpp
UnitWOPILoadEncoded.cpp
UnitWopiOwnertermination.cpp
UnitWOPIRenameFile.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitWOPISaveAs.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitWOPITemplate.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitWOPIVersionRestore.cpp re-factor: Socket / WebSocketHandler. 2020-03-11 16:48:03 +01:00
UnitWOPIWatermark.cpp Rework LOOLProtocol::tokenize() to return a StringVector object 2020-02-28 16:07:56 +01:00
WhiteBoxTests.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
WopiTestServer.hpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00