Stéphane Glondu pushed to branch debian/sid at Debian OCaml Maintainers / ocaml
Commits: a53bfe55 by Stéphane Glondu at 2026-01-09T08:53:46+01:00 Increase the amount of data written to a pipe in a test (Closes: #1107773) - - - - - b026d576 by Stéphane Glondu at 2026-01-09T08:54:57+01:00 Update changelog and prepare upload to unstable - - - - - 3 changed files: - debian/changelog - + debian/patches/Increase-the-amount-of-data-written-to-a-pipe-in-a-test.patch - debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,10 @@ +ocaml (5.4.0-2) unstable; urgency=medium + + * Increase the amount of data written to a pipe in a test + (Closes: #1107773) + + -- Stéphane Glondu <[email protected]> Fri, 09 Jan 2026 08:54:31 +0100 + ocaml (5.4.0-1) unstable; urgency=medium * New upstream release ===================================== debian/patches/Increase-the-amount-of-data-written-to-a-pipe-in-a-test.patch ===================================== @@ -0,0 +1,35 @@ +From: Stephen Dolan <[email protected]> +Date: Mon, 30 Jun 2025 13:58:36 +0100 +Subject: Increase the amount of data written to a pipe in a test + +On some OSes, you need to write more than 1MB of data to a pipe +before writes block, and read more than 64k to unblock them. + +Bug-Debian: https://bugs.debian.org/1107773 +Origin: https://github.com/ocaml/ocaml/pull/14116 +--- + testsuite/tests/lib-channels/close_during_flush.ml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/testsuite/tests/lib-channels/close_during_flush.ml b/testsuite/tests/lib-channels/close_during_flush.ml +index 39ef2fb..08e6f6e 100644 +--- a/testsuite/tests/lib-channels/close_during_flush.ml ++++ b/testsuite/tests/lib-channels/close_during_flush.ml +@@ -11,7 +11,7 @@ let () = + Unix.set_nonblock wr; + let buf = Bytes.make 1000 '!' in + begin match +- for i = 1 to 1000 do ++ for i = 1 to 10_000 do + ignore (Unix.write wr buf 0 1000) + done + with +@@ -25,7 +25,7 @@ let () = + output ch buf 0 1000; + let alarm_handler _ = + (* clear some space *) +- Unix.read rd (Bytes.make 10_000 '?') 0 10_000 |> ignore; ++ Unix.read rd (Bytes.make 100_000 '?') 0 100_000 |> ignore; + close_out ch + in + Sys.signal Sys.sigalrm (Signal_handle alarm_handler) |> ignore; ===================================== debian/patches/series ===================================== @@ -3,3 +3,4 @@ Trigger-output-complete-exe-on-custom-with-an-enviro.patch Do-not-error-on-warnings-in-autoconf.patch Use-CCLINKFLAGS-for-linking-all-executables-and-shar.patch Mark-test_compact_manydomains-as-multicore.patch +Increase-the-amount-of-data-written-to-a-pipe-in-a-test.patch View it on GitLab: https://salsa.debian.org/ocaml-team/ocaml/-/compare/b89eacbb74b88c4b4c4e1649757cfff2bfe22ac7...b026d57612774a5b2e3c4e00176e06fb169761e1 -- View it on GitLab: https://salsa.debian.org/ocaml-team/ocaml/-/compare/b89eacbb74b88c4b4c4e1649757cfff2bfe22ac7...b026d57612774a5b2e3c4e00176e06fb169761e1 You're receiving this email because of your account on salsa.debian.org.

