Files
@ f328e80a974a
Branch filter:
Location: libtransport.git/cmake_modules/cppunitConfig.cmake - annotation
f328e80a974a
917 B
text/x-cmake
Fix possible double free in ThreadPool
This makes HTTPRequestTest::GETThreadPool test pass deterministicaly.
Problem was static slot used to cleanup threads. When ThreadPool was instantiated
multiple times, threads were also clened up multiple times resulting in segfault.
This makes HTTPRequestTest::GETThreadPool test pass deterministicaly.
Problem was static slot used to cleanup threads. When ThreadPool was instantiated
multiple times, threads were also clened up multiple times resulting in segfault.
b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 b235a08edef9 | # - Find cppunit
# Find the native cppunit includes and library
#
# CPPUNIT_INCLUDE_DIR - where to find cppunit/Test.h, etc.
# CPPUNIT_LIBRARIES - List of libraries when using cppunit.
# CPPUNIT_FOUND - True if cppunit found.
IF (CPPUNIT_INCLUDE_DIR)
# Already in cache, be silent
SET(CPPUNIT_FIND_QUIETLY TRUE)
ENDIF (CPPUNIT_INCLUDE_DIR)
FIND_PATH(CPPUNIT_INCLUDE_DIR cppunit/Test.h)
SET(CPPUNIT_NAMES cppunit)
FIND_LIBRARY(CPPUNIT_LIBRARY NAMES ${CPPUNIT_NAMES} )
# handle the QUIETLY and REQUIRED arguments and set CPPUNIT_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CppUnit DEFAULT_MSG CPPUNIT_LIBRARY CPPUNIT_INCLUDE_DIR)
IF(CPPUNIT_FOUND)
SET( CPPUNIT_LIBRARIES ${CPPUNIT_LIBRARY} )
ELSE(CPPUNIT_FOUND)
SET( CPPUNIT_LIBRARIES )
ENDIF(CPPUNIT_FOUND)
MARK_AS_ADVANCED( CPPUNIT_LIBRARY CPPUNIT_INCLUDE_DIR )
|