guix-patches
[Top][All Lists]
Advanced

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

[bug#41606] [PATCH] tests: Allow passing on systems without support for


From: Simon South
Subject: [bug#41606] [PATCH] tests: Allow passing on systems without support for swap devices.
Date: Fri, 29 May 2020 14:24:46 -0400

The attached patch allows Guix's test suite to pass (and thus, the
"guix" package to be built) on systems that lack support for swap
devices; that is, systems that not only do not have a swap device
enabled but do not have even support for memory paging built into the
kernel (e.g. Linux built without CONFIG_SWAP). This might be the case
for a small home server, for example, on which the workload is
predictable but memory is otherwise at a premium.

On these systems the "swapon" and "swapoff" syscalls return ENOSYS
("Function not implemented"). The patch modifies the relevant tests in
tests/syscalls.scm to accept this as a valid return value.

--
Simon South
simon@simonsouth.net

Attachment: 0001-tests-Allow-passing-on-systems-without-support-for-s.patch
Description: Text Data


reply via email to

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