Package: ocaml-atd / 2.0.0-3

0001-Remove-a-test-that-fails-on-i386.patch Patch series | 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
30
From: Stephane Glondu <steph@glondu.net>
Date: Sat, 8 Dec 2018 10:33:40 +0100
Subject: Remove a test that fails on i386

Bug: https://github.com/mjambon/atd/issues/140
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=901823

---
 atdgen/test/test_atdgen_main.ml | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/atdgen/test/test_atdgen_main.ml b/atdgen/test/test_atdgen_main.ml
index 4284d43..26b1c94 100644
--- a/atdgen/test/test_atdgen_main.ml
+++ b/atdgen/test/test_atdgen_main.ml
@@ -190,13 +190,7 @@ let test_ocaml_internals () =
   Gc.compact ();
   int := 123;
   Gc.compact ();
-  check ({ int = !int }.int = 123);
-
-  let float = ref (Obj.magic 0) in
-  Gc.compact ();
-  float := 4.5;
-  Gc.compact ();
-  check ({ float = !float }.float = 4.5)
+  check ({ int = !int }.int = 123)
 
 let test_biniou_missing_field () =
   section "biniou missing record fields";