From 12ac2ecb13bbbedaf17f30dbe985bfb38c14e821 Mon Sep 17 00:00:00 2001 From: Robin Sommer Date: Mon, 21 Feb 2022 13:32:22 +0100 Subject: [PATCH] Small test case fix reported by thread sanitizer. --- src/core/signal.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/signal.cc b/src/core/signal.cc index 6cd2f806..b7065563 100644 --- a/src/core/signal.cc +++ b/src/core/signal.cc @@ -116,8 +116,8 @@ SignalManager::~SignalManager() { TEST_SUITE("Signal manager") { TEST_CASE("signal callbacks") { - int count1 = 0; - int count2 = 0; + std::atomic count1 = 0; + std::atomic count2 = 0; // TODO: For unknown reasons, the first kill() below sometimes gets // lost, at least on macOS (sigwait() returns, but it doesn't set a