[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][ocaml-team/ocaml][debian/sid] 2 commits: Increase the amount of data written to a pipe in a test



Title: GitLab

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:

Changes:

  • debian/changelog
    1
    +ocaml (5.4.0-2) unstable; urgency=medium
    
    2
    +
    
    3
    +  * Increase the amount of data written to a pipe in a test
    
    4
    +    (Closes: #1107773)
    
    5
    +
    
    6
    + -- Stéphane Glondu <glondu@debian.org>  Fri, 09 Jan 2026 08:54:31 +0100
    
    7
    +
    
    1 8
     ocaml (5.4.0-1) unstable; urgency=medium
    
    2 9
     
    
    3 10
       * New upstream release
    

  • debian/patches/Increase-the-amount-of-data-written-to-a-pipe-in-a-test.patch
    1
    +From: Stephen Dolan <sdolan@janestreet.com>
    
    2
    +Date: Mon, 30 Jun 2025 13:58:36 +0100
    
    3
    +Subject: Increase the amount of data written to a pipe in a test
    
    4
    +
    
    5
    +On some OSes, you need to write more than 1MB of data to a pipe
    
    6
    +before writes block, and read more than 64k to unblock them.
    
    7
    +
    
    8
    +Bug-Debian: https://bugs.debian.org/1107773
    
    9
    +Origin: https://github.com/ocaml/ocaml/pull/14116
    
    10
    +---
    
    11
    + testsuite/tests/lib-channels/close_during_flush.ml | 4 ++--
    
    12
    + 1 file changed, 2 insertions(+), 2 deletions(-)
    
    13
    +
    
    14
    +diff --git a/testsuite/tests/lib-channels/close_during_flush.ml b/testsuite/tests/lib-channels/close_during_flush.ml
    
    15
    +index 39ef2fb..08e6f6e 100644
    
    16
    +--- a/testsuite/tests/lib-channels/close_during_flush.ml
    
    17
    ++++ b/testsuite/tests/lib-channels/close_during_flush.ml
    
    18
    +@@ -11,7 +11,7 @@ let () =
    
    19
    +   Unix.set_nonblock wr;
    
    20
    +   let buf = Bytes.make 1000 '!' in
    
    21
    +   begin match
    
    22
    +-    for i = 1 to 1000 do
    
    23
    ++    for i = 1 to 10_000 do
    
    24
    +       ignore (Unix.write wr buf 0 1000)
    
    25
    +     done
    
    26
    +   with
    
    27
    +@@ -25,7 +25,7 @@ let () =
    
    28
    +   output ch buf 0 1000;
    
    29
    +   let alarm_handler _ =
    
    30
    +     (* clear some space *)
    
    31
    +-    Unix.read rd (Bytes.make 10_000 '?') 0 10_000 |> ignore;
    
    32
    ++    Unix.read rd (Bytes.make 100_000 '?') 0 100_000 |> ignore;
    
    33
    +     close_out ch
    
    34
    +   in
    
    35
    +   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
    3 3
     Do-not-error-on-warnings-in-autoconf.patch
    
    4 4
     Use-CCLINKFLAGS-for-linking-all-executables-and-shar.patch
    
    5 5
     Mark-test_compact_manydomains-as-multicore.patch
    
    6
    +Increase-the-amount-of-data-written-to-a-pipe-in-a-test.patch


  • Reply to: