summaryrefslogtreecommitdiff
path: root/test/UnitHosting.cpp
AgeCommit message (Collapse)AuthorFilesLines
2020-03-14wsd: test assertion macrosAshod Nakashian1-15/+15
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-01-17Convert some of the integration-http-server tests to new-style onesMiklos Vajna1-0/+150
So that they are in-process, which means it's easier to debug when they fail. Change-Id: I164b97be0bc487a02d4b2a872b9c0e40791056cd Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86951 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>