[Libreoffice-commits] online.git: test/lokassert.hpp
Ashod Nakashian (via logerrit)
logerrit at kemper.freedesktop.org
Thu Apr 16 18:37:30 UTC 2020
test/lokassert.hpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit c2c854b22cb483bad92a1a8071e3ecf9bc9d7a4e
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Thu Apr 16 11:54:26 2020 -0400
Commit: Ashod Nakashian <ashnakash at gmail.com>
CommitDate: Thu Apr 16 20:37:11 2020 +0200
wsd: test: print assertion message as well
Change-Id: I26854ed8ad16be53ea91bd728f2090180ff5775d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92382
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
diff --git a/test/lokassert.hpp b/test/lokassert.hpp
index 796a8c355..eb192608e 100644
--- a/test/lokassert.hpp
+++ b/test/lokassert.hpp
@@ -71,7 +71,8 @@ inline std::ostream& operator<<(std::ostream& os, const std::vector<char>& v)
{ \
if (!(condition)) \
{ \
- std::cerr << "Assertion failure: " << (#condition) << std::endl; \
+ std::cerr << "Assertion failure: " << (message) << ". Condition: " << (#condition) \
+ << std::endl; \
LOK_ASSERT_IMPL(condition); \
CPPUNIT_ASSERT_MESSAGE((message), (condition)); \
} \
More information about the Libreoffice-commits
mailing list