GNU bug report logs - #41606
[PATCH] tests: Allow passing on systems without support for swap devices.

Previous Next

Package: guix-patches;

Reported by: Simon South <simon <at> simonsouth.net>

Date: Fri, 29 May 2020 18:26:02 UTC

Severity: normal

Tags: patch

Done: Mathieu Othacehe <othacehe <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Simon South <simon <at> simonsouth.net>
Subject: bug#41606: closed (Re: [bug#41606] [PATCH] tests: Allow passing
 on systems without support for swap devices.)
Date: Tue, 02 Jun 2020 08:29:01 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#41606: [PATCH] tests: Allow passing on systems without support for swap devices.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 41606 <at> debbugs.gnu.org.

-- 
41606: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=41606
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Mathieu Othacehe <othacehe <at> gnu.org>
To: Simon South <simon <at> simonsouth.net>
Cc: 41606-done <at> debbugs.gnu.org
Subject: Re: [bug#41606] [PATCH] tests: Allow passing on systems without
 support for swap devices.
Date: Tue, 02 Jun 2020 10:28:16 +0200
Hello Simon,

> 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

[Message part 3 (message/rfc822, inline)]
From: Simon South <simon <at> simonsouth.net>
To: guix-patches <at> gnu.org
Subject: [PATCH] tests: Allow passing on systems without support for swap
 devices.
Date: Fri, 29 May 2020 14:24:46 -0400
[Message part 4 (text/plain, inline)]
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 <at> simonsouth.net

[0001-tests-Allow-passing-on-systems-without-support-for-s.patch (text/x-patch, attachment)]

This bug report was last modified 5 years and 50 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.