summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/valgrind/valgrind/0001-Fix-drd-tests-shared_timed_mutex.cpp.patch
blob: 738bf87c92f980bcafa0298c331296c8588fd827 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 900b3f9b0765488f0e1f457ff5d5d1e3efe897de Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <alex@linutronix.de>
Date: Wed, 27 Apr 2022 10:01:22 +0200
Subject: [PATCH] Fix drd/tests/shared_timed_mutex.cpp

Upstream-Status: Submitted [https://bugs.kde.org/show_bug.cgi?id=453055]
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 drd/tests/shared_timed_mutex.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drd/tests/shared_timed_mutex.cpp b/drd/tests/shared_timed_mutex.cpp
index 9741169..dfd97a4 100644
--- a/drd/tests/shared_timed_mutex.cpp
+++ b/drd/tests/shared_timed_mutex.cpp
@@ -43,6 +43,7 @@ void g()
         if (test_mutex.try_lock_shared_until(then))
         {
             test_mutex.unlock_shared();
+            break;
         }
     }
     if (i == 3)
-- 
2.30.2