Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2021-05-25 15:08:07 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2021-05-25 15:08:07 +0300
commitc5c02b532001a9981bc2ee026340b6ecda08c13f (patch)
tree1bd6f3241841ddc482d261866f92dcc51889bdc1
parent1380d0cbac91821488a1f0a494cb220ae864a252 (diff)
Fix CI failures in last commit.
-rw-r--r--.github/workflows/unittests_linux.yml2
-rw-r--r--test/tests/dynamic_thread_pool_group.cpp6
2 files changed, 6 insertions, 2 deletions
diff --git a/.github/workflows/unittests_linux.yml b/.github/workflows/unittests_linux.yml
index 3cb81b81..c395b445 100644
--- a/.github/workflows/unittests_linux.yml
+++ b/.github/workflows/unittests_linux.yml
@@ -28,7 +28,7 @@ jobs:
- name: CMake tests Linux
shell: bash
run: |
- sudo apt-get remove -y libstdc++-10-dev g++-10 gcc-10
+ sudo apt-get remove -y libstdc++-11-dev g++-11 gcc-11
sudo apt-get autoremove
if [ "${{ matrix.compiler }}" = "libc++" ]; then
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -;
diff --git a/test/tests/dynamic_thread_pool_group.cpp b/test/tests/dynamic_thread_pool_group.cpp
index fa641bb6..99ae5951 100644
--- a/test/tests/dynamic_thread_pool_group.cpp
+++ b/test/tests/dynamic_thread_pool_group.cpp
@@ -239,7 +239,7 @@ static inline void TestDynamicThreadPoolGroupWorkItemDelayWorks()
{
using _base = llfio::dynamic_thread_pool_group::work_item;
shared_state_t *shared{nullptr};
- const size_t myidx;
+ const size_t myidx{0};
work_item() = default;
explicit work_item(shared_state_t *_shared, size_t _myidx)
@@ -313,7 +313,11 @@ static inline void TestDynamicThreadPoolGroupWorkItemDelayWorks()
std::cout << " " << shared_state.within_100ms << " delayed work items were scheduled within 100ms of request." << std::endl;
std::cout << " " << shared_state.over_100ms << " delayed work items were scheduled over 100ms of request." << std::endl;
BOOST_CHECK(shared_state.within_1ms > 0);
+#ifdef __APPLE__
+ BOOST_CHECK(shared_state.over_100ms < 40); // Mac OS appears to apply significant slop to timers
+#else
BOOST_CHECK(shared_state.over_100ms < 10);
+#endif
}
static inline void TestDynamicThreadPoolGroupNestingWorks()