summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-06-16 01:01:45 -0400
committerAshod Nakashian <ashnakash@gmail.com>2016-06-16 05:02:40 +0000
commit875c553f5d5f5d2329bf40b1b39118259ec6a93b (patch)
treec3f155d5f9a123a197d86c2dae3cd837a59b6b74 /comphelper
parentfca1c92a2b79480f7842a90698115ae862442df9 (diff)
Expect fewer than MAX_CONCURRENCY threads in test (2)
Change-Id: I895ae4dea12e66fcbd0f4635c6ba5915d0431187 Reviewed-on: https://gerrit.libreoffice.org/26346 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/qa/unit/threadpooltest.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/qa/unit/threadpooltest.cxx b/comphelper/qa/unit/threadpooltest.cxx
index 388dffab7f55..d71a1116897d 100644
--- a/comphelper/qa/unit/threadpooltest.cxx
+++ b/comphelper/qa/unit/threadpooltest.cxx
@@ -44,7 +44,7 @@ void ThreadPoolTest::testPreferredConcurrency() {
// Revert and check. Again, nothing should change.
unsetenv("MAX_CONCURRENCY");
nThreads = comphelper::ThreadPool::getPreferredConcurrency();
- CPPUNIT_ASSERT_EQUAL(nExpected, nThreads);
+ CPPUNIT_ASSERT_MESSAGE("Expected no more than 4 threads", nExpected >= nThreads);
#endif
}