The attached patch allows Guix's test suite to pass (and thus, the"guix" package to be built) on systems that lack support for swapdevices; that is, systems that not only do not have a swap deviceenabled but do not have even support for memory paging built into thekernel (e.g. Linux built without CONFIG_SWAP). This might be the casefor a small home server, for example, on which the workload ispredictable 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 intests/syscalls.scm to accept this as a valid return value. --Simon Southsimon@simonsouth.net
From 39507094be62417f76ebd18a0724966ededc7166 Mon Sep 17 00:00:00 2001From: Simon South <firstname.lastname@example.org>Date: Fri, 29 May 2020 13:53:46 -0400Subject: [PATCH] tests: Allow passing on systems without support for swap devices. * tests/syscalls.scm ("swapon", "swapoff"): Accept ENOSYS as a valid result.--- tests/syscalls.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
(name . Simon South)(address . email@example.com)(address . firstname.lastname@example.org)
Toggle quote (4 lines)> 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.
This looks good to me. I added a copyright line for you and pushed. Thanks, Mathieu