diff --git a/unotest/source/embindtest/embindtest.cxx b/unotest/source/embindtest/embindtest.cxx index 260c9883eb19..1f8b916fbbf1 100644 --- a/unotest/source/embindtest/embindtest.cxx +++ b/unotest/source/embindtest/embindtest.cxx @@ -279,7 +279,7 @@ class Test : public cppu::WeakImplHelper return false; } auto const& e = *o3tl::forceAccess(value); - return e.Message == "error" && !e.Context.is() && e.m1 == -123456 && e.m2 == 100.5 + return e.Message.startsWith("error") && !e.Context.is() && e.m1 == -123456 && e.m2 == 100.5 && e.m3 == u"hä"; } diff --git a/unotest/source/embindtest/embindtest.js b/unotest/source/embindtest/embindtest.js index 9b9911826219..c661589683f6 100644 --- a/unotest/source/embindtest/embindtest.js +++ b/unotest/source/embindtest/embindtest.js @@ -289,7 +289,7 @@ Module.addOnPostRun(function() { { let v = test.getAnyException(); console.log(v); - console.assert(v.get().Message === 'error'); + console.assert(v.get().Message.startsWith('error')); console.assert(v.get().Context === null); console.assert(v.get().m1 === -123456); console.assert(v.get().m2 === 100.5);