[Libreoffice-commits] core.git: package/qa
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Sun May 16 18:46:49 UTC 2021
package/qa/cppunit/test_package.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 1070cd26d80399036ae11d81ddb62c0c5601b315
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Sat May 15 18:16:21 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sun May 16 20:46:09 2021 +0200
speed up package test
Change-Id: I9e0e2520a9851923d2910a2e487dab589b23eafd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115672
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/package/qa/cppunit/test_package.cxx b/package/qa/cppunit/test_package.cxx
index 62c718421c7c..6f767295618c 100644
--- a/package/qa/cppunit/test_package.cxx
+++ b/package/qa/cppunit/test_package.cxx
@@ -106,7 +106,8 @@ namespace
const std::vector<char>& rBuf = *itBuf;
CPPUNIT_ASSERT_EQUAL(size_t(1048576), rBuf.size()); // 1 MB each.
for (char check : rBuf)
- CPPUNIT_ASSERT_EQUAL(c, check);
+ if (c != check)
+ CPPUNIT_ASSERT_MESSAGE("stream does not contain expected data", false);
}
}
@@ -174,6 +175,7 @@ namespace
for (char c = 'a'; c <= 'z'; ++c, ++itBuf)
{
+ itBuf->reserve(1024*1024);
OUString aName = OUStringChar(c) + ".txt";
uno::Reference<io::XInputStream> xStrm;
More information about the Libreoffice-commits
mailing list