diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-15 18:16:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-16 20:46:09 +0200 |
commit | 1070cd26d80399036ae11d81ddb62c0c5601b315 (patch) | |
tree | fe2bdc8a40a49c088499479946932060a13bc355 /package/qa/cppunit | |
parent | 203288c830041b41268f23b9aed5ad786a8e7ae6 (diff) |
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@collabora.co.uk>
Diffstat (limited to 'package/qa/cppunit')
-rw-r--r-- | package/qa/cppunit/test_package.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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; |