guix-patches
[Top][All Lists]
Advanced

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

[bug#62796] [PATCH core-updates] gnu: ocaml-ppxlib: Fix tests.


From: Simon Tournier
Subject: [bug#62796] [PATCH core-updates] gnu: ocaml-ppxlib: Fix tests.
Date: Wed, 12 Apr 2023 19:08:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

Hi,

On mer., 12 avril 2023 at 18:00, Simon Tournier <zimon.toutoune@gmail.com> 
wrote:

> This fixes a regression when updating grep.

The other affected package is ocaml-mdx, fixed by [PATCH v2] send to
patch#62796.

Considering these 2 patches, the OCaml packages in core-updates build
fine.  Except ocaml-uring with the error:

--8<---------------cut here---------------start------------->8---
 # let `Timeout, timeout = consume t;;
-val timeout : int = -62
+val timeout : int = -22
--8<---------------cut here---------------end--------------->8---

Well, the errno -62 is expected and corresponds to -ETIME from Linux
kernel documentation.  All documented in tests/main.md of the package
ocaml-uring,

--8<---------------cut here---------------start------------->8---
## Timeout

Timeout should return (-ETIME). This is defined in 
https://github.com/torvalds/linux/blob/master/include/uapi/asm-generic/errno.h#L45

```ocaml

[...]

# let `Timeout, timeout = consume t;;
val timeout : int = -62
--8<---------------cut here---------------end--------------->8---

And I do not understand why this -22 (EINVAL Invalid argument).  Any
idea?


Cheers,
simon





reply via email to

[Prev in Thread] Current Thread [Next in Thread]