summaryrefslogtreecommitdiff
path: root/testtools
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-05-09 18:25:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-18 08:35:44 +0200
commit1d0bc2139759f087d50432f8a2116060676f34e1 (patch)
tree6e186a971c812eaf09078b7877cfd31bbcce5b46 /testtools
parent1f6b7678d52e1bf9092e3ce2cf7b7c4ffdcb2ba2 (diff)
use std::experimental::source_location in uno::Exception
Clang and gcc have moved this out of experimental and into std::source_location, but only in their very latest releases. Change-Id: I9d9d9155788ee4240455ac4628b298dface4ad24 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93868 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'testtools')
-rw-r--r--testtools/source/bridgetest/bridgetest.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/testtools/source/bridgetest/bridgetest.cxx b/testtools/source/bridgetest/bridgetest.cxx
index f8129c53d2ba..5ce8a687d5f8 100644
--- a/testtools/source/bridgetest/bridgetest.cxx
+++ b/testtools/source/bridgetest/bridgetest.cxx
@@ -940,7 +940,7 @@ static bool raiseException( const Reference< XBridgeTest > & xLBT )
if (rExc.ArgumentPosition == 5 &&
#if OSL_DEBUG_LEVEL == 0
// java stack traces trash Message
- rExc.Message == STRING_TEST_CONSTANT &&
+ rExc.Message.startsWith(STRING_TEST_CONSTANT) &&
#endif
rExc.Context == xLBT->getInterface())
{
@@ -967,7 +967,7 @@ static bool raiseException( const Reference< XBridgeTest > & xLBT )
if (rExc.Context == xLBT->getInterface()
#if OSL_DEBUG_LEVEL == 0
// java stack traces trash Message
- && rExc.Message == STRING_TEST_CONSTANT
+ && rExc.Message.startsWith(STRING_TEST_CONSTANT)
#endif
)
{
@@ -987,7 +987,7 @@ static bool raiseException( const Reference< XBridgeTest > & xLBT )
if (rExc.Context == xLBT->getInterface()
#if OSL_DEBUG_LEVEL == 0
// java stack traces trash Message
- && rExc.Message == STRING_TEST_CONSTANT
+ && rExc.Message.startsWith(STRING_TEST_CONSTANT)
#endif
)
{