Kaydet (Commit) 875c553f authored tarafından Ashod Nakashian's avatar Ashod Nakashian Kaydeden (comit) Ashod Nakashian

Expect fewer than MAX_CONCURRENCY threads in test (2)

Change-Id: I895ae4dea12e66fcbd0f4635c6ba5915d0431187
Reviewed-on: https://gerrit.libreoffice.org/26346Reviewed-by: 's avatarAshod Nakashian <ashnakash@gmail.com>
Tested-by: 's avatarAshod Nakashian <ashnakash@gmail.com>
üst fca1c92a
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment