File: 01-disable-reference-test.patch

package info (click to toggle)
jamm 0.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 528 kB
  • sloc: java: 3,936; xml: 315; makefile: 11
file content (17 lines) | stat: -rw-r--r-- 989 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Disable testIgnoreNonStrongReferences test until upstream supports Java 21
 Upstream does not support Java 21. This patch disables the test that fails
 due to optimisations of the memory usage in ReferenceQueue<> in Java 21.
Author: Vladimir Petko <vladimir.petko@canonical.com>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053026
Forwarded: not-needed
Last-Update: 2023-11-22
--- a/test/org/github/jamm/MemoryMeterTest.java
+++ b/test/org/github/jamm/MemoryMeterTest.java
@@ -135,7 +135,6 @@
         assertEquals(meter.measure(withString) + meter.measure(1), meter.measureDeep(withString));
     }
 
-    @Test
     public void testIgnoreNonStrongReferences() throws InterruptedException {
         // The Reference fields 'next' and 'discovered' are used by 'ReferenceQueue' instances and are not part of what
         // we want to measure. The 'queue' field is either a singleton 'ReferenceQueue.NULL' or a provided queue that user hold a reference to.