You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rm...@apache.org on 2023/01/22 17:31:07 UTC
[logging-log4cxx] branch disable-multithreadtest-by-default created (now f2faa9d4)
This is an automated email from the ASF dual-hosted git repository.
rmiddleton pushed a change to branch disable-multithreadtest-by-default
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
at f2faa9d4 Make multithreadtest optional due to its instability
This branch includes the following new commits:
new f2faa9d4 Make multithreadtest optional due to its instability
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[logging-log4cxx] 01/01: Make multithreadtest optional due to its instability
Posted by rm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rmiddleton pushed a commit to branch disable-multithreadtest-by-default
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
commit f2faa9d418605abb60e9211d24595e16dfc31683
Author: Robert Middleton <ro...@rm5248.com>
AuthorDate: Sun Jan 22 12:30:55 2023 -0500
Make multithreadtest optional due to its instability
---
src/test/cpp/CMakeLists.txt | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/test/cpp/CMakeLists.txt b/src/test/cpp/CMakeLists.txt
index 74a35e5b..751abf8c 100644
--- a/src/test/cpp/CMakeLists.txt
+++ b/src/test/cpp/CMakeLists.txt
@@ -15,6 +15,9 @@
# limitations under the License.
#
+option(ENABLE_MULTITHREAD_TEST "Enable multithread test. Note that this test is very unstable,
+ it is mostly designed to ensure that we don't crash immediately if exit is called in a thread" OFF)
+
# Components required by all tests
add_library(testingFramework STATIC abts.cpp appenderskeletontestcase.cpp logunit.cpp vectorappender.cpp writerappendertestcase.cpp )
target_compile_definitions(testingFramework PRIVATE ${LOG4CXX_COMPILE_DEFINITIONS} ${APR_COMPILE_DEFINITIONS} ${APR_UTIL_COMPILE_DEFINITIONS} )
@@ -54,13 +57,15 @@ set(ALL_LOG4CXX_TESTS
propertyconfiguratortest
rollingfileappendertestcase
streamtestcase
- multithreadtest
locationtest
locationdisabledtest
)
if(${ENABLE_FMT_LAYOUT})
set(ALL_LOG4CXX_TESTS ${ALL_LOG4CXX_TESTS} fmttest)
endif()
+if(${ENABLE_MULTITHREAD_TEST})
+ set(ALL_LOG4CXX_TESTS ${ALL_LOG4CXX_TESTS} multithreadtest)
+endif()
foreach(fileName IN LISTS ALL_LOG4CXX_TESTS)
add_executable(${fileName} "${fileName}.cpp")
endforeach()