Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / interpreters / guile / disable-gc-sensitive-tests.patch
blob076091a702a2b87a47b028b6f7cfd9c8b5935e94
1 This patch disable GC-sensitive tests. This is particularly useful when
2 compiling with `-O0' (as is done with coverage analysis) since there may
3 be many false references held on the stack, leading to the failure of
4 such tests.
6 --- a/test-suite/tests/gc.test
7 +++ b/test-suite/tests/gc.test
8 @@ -67,6 +67,7 @@
10 (with-test-prefix "gc"
11 (pass-if "Unused modules are removed"
12 + (throw 'unresolved)
13 (let* ((guard (make-guardian))
14 (total 1000))
16 --- a/test-suite/tests/threads.test
17 +++ b/test-suite/tests/threads.test
18 @@ -366,6 +366,7 @@
19 (not (mutex-owner m))))
21 (pass-if "mutex with owner not retained (bug #27450)"
22 + (throw 'unresolved)
23 (let ((g (make-guardian)))
24 (g (let ((m (make-mutex))) (lock-mutex m) m))