diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2016-06-15 21:11:34 -0400 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2016-06-16 01:46:13 +0000 |
commit | 3ab13873ebb6dc4738be2e2184ee4433a2447c1d (patch) | |
tree | 11821b493a59050cab9963d2f3744dd0091932be /comphelper | |
parent | SfxObjectShell::Current may return nullptr (diff) | |
download | core-3ab13873ebb6dc4738be2e2184ee4433a2447c1d.tar.gz core-3ab13873ebb6dc4738be2e2184ee4433a2447c1d.zip |
Expect fewer than MAX_CONCURRENCY threads in test
Change-Id: I4346b6d79b46bccb5b79e27744c3cf80aa88fc9a
Reviewed-on: https://gerrit.libreoffice.org/26344
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/qa/unit/threadpooltest.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/qa/unit/threadpooltest.cxx b/comphelper/qa/unit/threadpooltest.cxx index a90d5b0e1db6..388dffab7f55 100644 --- a/comphelper/qa/unit/threadpooltest.cxx +++ b/comphelper/qa/unit/threadpooltest.cxx @@ -31,7 +31,7 @@ void ThreadPoolTest::testPreferredConcurrency() { // Check default. auto nThreads = comphelper::ThreadPool::getPreferredConcurrency(); sal_Int32 nExpected = 4; // UTs are capped to 4. - CPPUNIT_ASSERT_EQUAL(nExpected, nThreads); + CPPUNIT_ASSERT_MESSAGE("Expected no more than 4 threads", nExpected >= nThreads); #ifndef _WIN32_WINNT // The result should be cached, so this should change anything. |