File: 0001-Mark-mutex-with-owner-not-retained-threads-test-as-u.patch

package info (click to toggle)
guile-2.0 2.0.13%2B1-5.1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 27,104 kB
  • sloc: ansic: 133,697; lisp: 67,499; sh: 4,762; makefile: 2,031; perl: 243; awk: 37
file content (29 lines) | stat: -rw-r--r-- 1,024 bytes parent folder | download
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
27
28
29
From 4edc82457baef9079b606f51c6e31d336176d87a Mon Sep 17 00:00:00 2001
From: Rob Browning <rlb@defaultvalue.org>
Date: Sun, 18 Mar 2012 13:28:24 -0500
Subject: Mark "mutex with owner not retained" threads test as unresolved.

As per discussion with upstream, mark this test as unresolved since it
may produce false negatives, depending on the behavior/timing of the
garbage collector.
---
 test-suite/tests/threads.test | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/test-suite/tests/threads.test b/test-suite/tests/threads.test
index 3b7a3e440..c6fe81e40 100644
--- a/test-suite/tests/threads.test
+++ b/test-suite/tests/threads.test
@@ -423,8 +423,10 @@
 
             (gc) (gc)
             (let ((m (g)))
-              (and (mutex? m)
-                   (eq? (mutex-owner m) (current-thread)))))))
+              (or
+               (and (mutex? m)
+                    (eq? (mutex-owner m) (current-thread)))
+               (throw 'unresolved))))))
 
       ;;
       ;; mutex lock levels