[Libreoffice-commits] core.git: stoc/test
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Mon Aug 19 08:19:06 UTC 2019
stoc/test/uriproc/test_uriproc.cxx | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
New commits:
commit 92d1b0d10ec04f17d116bc54aada652f1c2cac4a
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Aug 19 09:04:40 2019 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Aug 19 10:18:31 2019 +0200
Improve test failure output
Change-Id: Ie0dd5b4d0b994ce6e1687bdb21749cb6cafc2366
Reviewed-on: https://gerrit.libreoffice.org/77700
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/stoc/test/uriproc/test_uriproc.cxx b/stoc/test/uriproc/test_uriproc.cxx
index dbf095a3bd04..c1ab0f0d89e3 100644
--- a/stoc/test/uriproc/test_uriproc.cxx
+++ b/stoc/test/uriproc/test_uriproc.cxx
@@ -195,7 +195,9 @@ void Test::testParse() {
css::uno::Reference< css::uri::XUriReference > uriRef(
m_uriFactory->parse(
OUString::createFromAscii(data[i].uriReference)));
- CPPUNIT_ASSERT_EQUAL(data[i].schemeSpecificPart != nullptr, uriRef.is());
+ TEST_ASSERT_EQUAL(
+ "testParse", i, data[i].uriReference, data[i].schemeSpecificPart != nullptr,
+ uriRef.is());
if (uriRef.is()) {
TEST_ASSERT_EQUAL(
"testParse", i, data[i].uriReference,
@@ -587,11 +589,11 @@ void Test::testMakeAbsolute() {
css::uno::Reference< css::uri::XUriReference > baseUriRef(
m_uriFactory->parse(
OUString::createFromAscii(data[i].baseUriReference)));
- CPPUNIT_ASSERT(baseUriRef.is());
+ TEST_ASSERT_EQUAL("testMakeAbsolute", i, data[i].baseUriReference, true, baseUriRef.is());
css::uno::Reference< css::uri::XUriReference > uriRef(
m_uriFactory->parse(
OUString::createFromAscii(data[i].uriReference)));
- CPPUNIT_ASSERT(uriRef.is());
+ TEST_ASSERT_EQUAL("testMakeAbsolute", i, data[i].uriReference, true, uriRef.is());
css::uno::Reference< css::uri::XUriReference > absolute(
m_uriFactory->makeAbsolute(
baseUriRef, uriRef, data[i].processSpecialBaseSegments,
@@ -692,11 +694,11 @@ void Test::testMakeRelative() {
css::uno::Reference< css::uri::XUriReference > baseUriRef(
m_uriFactory->parse(
OUString::createFromAscii(data[i].baseUriReference)));
- CPPUNIT_ASSERT(baseUriRef.is());
+ TEST_ASSERT_EQUAL("testMakeRelative", i, data[i].baseUriReference, true, baseUriRef.is());
css::uno::Reference< css::uri::XUriReference > uriRef(
m_uriFactory->parse(
OUString::createFromAscii(data[i].uriReference)));
- CPPUNIT_ASSERT(uriRef.is());
+ TEST_ASSERT_EQUAL("testMakeRelative", i, data[i].uriReference, true, uriRef.is());
css::uno::Reference< css::uri::XUriReference > relative(
m_uriFactory->makeRelative(
baseUriRef, uriRef, data[i].preferAuthorityOverRelativePath,
@@ -714,7 +716,7 @@ void Test::testMakeRelative() {
m_uriFactory->makeAbsolute(
baseUriRef, relative, true,
css::uri::RelativeUriExcessParentSegments_ERROR));
- CPPUNIT_ASSERT(absolute.is());
+ TEST_ASSERT_EQUAL("testMakeRelative", i, data[i].uriReference, true, absolute.is());
TEST_ASSERT_EQUAL(
"testMakeRelative", i, data[i].uriReference,
OUString::createFromAscii(
More information about the Libreoffice-commits
mailing list