[Libreoffice-commits] core.git: comphelper/qa

Stephan Bergmann sbergman at redhat.com
Fri Mar 31 08:26:05 UTC 2017


 comphelper/qa/unit/threadpooltest.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1fc76c4dfc196798eea24030a205d1e5f7922eb2
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Mar 30 16:28:15 2017 +0200

    This only wants to check for Windows in general?
    
    Change-Id: I0578e046b8d97b076ca638912740d548453a9a04
    Reviewed-on: https://gerrit.libreoffice.org/35916
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/comphelper/qa/unit/threadpooltest.cxx b/comphelper/qa/unit/threadpooltest.cxx
index d71a1116897d..bb9aac0e1050 100644
--- a/comphelper/qa/unit/threadpooltest.cxx
+++ b/comphelper/qa/unit/threadpooltest.cxx
@@ -33,7 +33,7 @@ void ThreadPoolTest::testPreferredConcurrency() {
     sal_Int32 nExpected = 4; // UTs are capped to 4.
     CPPUNIT_ASSERT_MESSAGE("Expected no more than 4 threads", nExpected >= nThreads);
 
-#ifndef _WIN32_WINNT
+#ifndef _WIN32
     // The result should be cached, so this should change anything.
     nThreads = std::thread::hardware_concurrency() * 2;
     setenv("MAX_CONCURRENCY", std::to_string(nThreads).c_str(), true);


More information about the Libreoffice-commits mailing list