+++ /dev/null
-From: Stephane Glondu <steph@glondu.net>
-Date: Mon, 29 Jul 2019 12:49:31 +0200
-Subject: Tune testpreempt test to make it work on kfreebsd
-
-Forwarded: https://github.com/ocaml/ocaml/pull/8849
----
- testsuite/tests/lib-systhreads/testpreempt.ml | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/testsuite/tests/lib-systhreads/testpreempt.ml b/testsuite/tests/lib-systhreads/testpreempt.ml
-index 11d6915..f4ef378 100644
---- a/testsuite/tests/lib-systhreads/testpreempt.ml
-+++ b/testsuite/tests/lib-systhreads/testpreempt.ml
-@@ -19,6 +19,7 @@ let rec generate_list n =
- aux [] n
-
- let rec long_computation time0 =
-+ Thread.delay 0.1;
- let long_list = generate_list 100000 in
- let res = List.length (List.rev_map sin long_list) in
- if Sys.time () -. time0 > 2. then
0005-Check-for-definition-of-AT_SECURE-before-using-it.patch
0006-Add-support-for-Debian-s-armhf-in-configure.ac.patch
0007-Fix-spelling-errors-reported-by-Lintian.patch
-0008-Tune-testpreempt-test-to-make-it-work-on-kfreebsd.patch
sed -i /almabench.ml/d testsuite/tests/misc-unsafe/ocamltests
rm -f testsuite/tests/misc-unsafe/almabench.ml
endif
+ifeq ($(OCAMLMAJOR),4.08)
+ifneq (,$(findstring kfreebsd,$(DEB_BUILD_ARCH)))
+# We temporarily disable testpreempt test which should be fixed in 4.09
+# See https://github.com/ocaml/ocaml/pull/8849
+ sed -i /testpreempt.ml/d testsuite/tests/lib-systhreads/ocamltests
+ rm -f testsuite/tests/lib-systhreads/testpreempt.ml
+endif
+endif
ifeq (,$(DEB_TEST_BUILD_PREFIX))
cd testsuite && make all
endif