This is an automated email from the ASF dual-hosted git repository.
pnoltes pushed a commit to branch feature/scheduled_event_on_event_thread
in repository https://gitbox.apache.org/repos/asf/celix.git
The following commit(s) were added to
refs/heads/feature/scheduled_event_on_event_thread by this push:
new 95e67390 Disable test ScheduledEventTimeoutLogTest for __APPLE__
95e67390 is described below
commit 95e6739056f7726602d7e8e1c4d4faca87d6b784
Author: Pepijn Noltes <[email protected]>
AuthorDate: Tue Jul 11 19:26:45 2023 +0200
Disable test ScheduledEventTimeoutLogTest for __APPLE__
---
libs/framework/gtest/src/ScheduledEventTestSuite.cc | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libs/framework/gtest/src/ScheduledEventTestSuite.cc
b/libs/framework/gtest/src/ScheduledEventTestSuite.cc
index b4d2d83c..90646a4b 100644
--- a/libs/framework/gtest/src/ScheduledEventTestSuite.cc
+++ b/libs/framework/gtest/src/ScheduledEventTestSuite.cc
@@ -645,7 +645,11 @@ TEST_F(ScheduledEventTestSuite, CxxWaitForScheduledEvent) {
EXPECT_EQ(2, count.load());
}
+#ifndef __APPLE__
TEST_F(ScheduledEventTestSuite, ScheduledEventTimeoutLogTest) {
+ //Disabled for __APPLE__, because the expected timeout in
celix_scheduledEvent_waitForRemoved does not always
+ //trigger. see also ticket #587.
+
//Given a framework with a log callback that counts the number of warning
log messages
std::atomic<int> logCount{0};
auto logCallback = [](void* handle, celix_log_level_e level, const char*,
const char*, int, const char* format, va_list args){
@@ -699,3 +703,4 @@ TEST_F(ScheduledEventTestSuite,
ScheduledEventTimeoutLogTest) {
//(note the logCount can be increased more than once, due to another
processing thread)
EXPECT_GE(logCount.load(), 2);
}
+#endif