Skip to content

Commit

Permalink
Small test case fix reported by thread sanitizer.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmmr committed Feb 21, 2022
1 parent d662840 commit 12ac2ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/signal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ SignalManager::~SignalManager() {

TEST_SUITE("Signal manager") {
TEST_CASE("signal callbacks") {
int count1 = 0;
int count2 = 0;
std::atomic<int> count1 = 0;
std::atomic<int> 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
Expand Down

0 comments on commit 12ac2ec

Please sign in to comment.