unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: manolis837@gmail.com
To: guile-devel@gnu.org
Cc: rennes@openmailbox.org
Subject: [PATCH] On Hurd, skip tests that require working setrlimits for memory
Date: Tue, 16 May 2017 12:35:00 +0300	[thread overview]
Message-ID: <20170516093500.4773-1-manolis837@gmail.com> (raw)

From: Manolis Ragkousis <manolis837@gmail.com>

On Hurd, setrlimits are not yet implemented. See
<https://lists.gnu.org/archive/html/bug-hurd/2017-05/msg00013.html>.

* test-suite/standalone/test-out-of-memory: skip for Hurd.
* test-suite/standalone/test-stack-overflow: skip for Hurd.
---
 test-suite/standalone/test-out-of-memory  | 6 ++++++
 test-suite/standalone/test-stack-overflow | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/test-suite/standalone/test-out-of-memory b/test-suite/standalone/test-out-of-memory
index 95692d6ea..221651270 100755
--- a/test-suite/standalone/test-out-of-memory
+++ b/test-suite/standalone/test-out-of-memory
@@ -15,6 +15,12 @@ exec guile -q -s "$0" "$@"
   ;; See also test-stack-overflow.
   (exit 77)) ; unresolved
 
+(when (string-ci= "GNU" (vector-ref (uname) 0))
+  ;; setrlimits are not yet implemented on GNU/Hurd systems. Proceeding
+  ;; with the test would end in a crash. See
+  ;; <https://lists.gnu.org/archive/html/bug-hurd/2017-05/msg00013.html>
+  (exit 77)) ; unresolved
+
 (when (string-contains-ci (vector-ref (uname) 0) "CYGWIN_NT")
   ;; attempting to use setrlimits for memory RLIMIT_AS will always
   ;; produce an invalid argument error on Cygwin (tested on
diff --git a/test-suite/standalone/test-stack-overflow b/test-suite/standalone/test-stack-overflow
index 7229661c9..dd54249d8 100755
--- a/test-suite/standalone/test-stack-overflow
+++ b/test-suite/standalone/test-stack-overflow
@@ -15,6 +15,12 @@ exec guile -q -s "$0" "$@"
   ;; See also test-out-of-memory.
   (exit 77)) ; uresolved
 
+(when (string-ci= "GNU" (vector-ref (uname) 0))
+  ;; setrlimits are not yet implemented on GNU/Hurd systems. Proceeding
+  ;; with the test would end in a crash. See
+  ;; <https://lists.gnu.org/archive/html/bug-hurd/2017-05/msg00013.html>
+  (exit 77)) ; unresolved
+
 (when (string-contains-ci (vector-ref (uname) 0) "CYGWIN_NT")
   ;; attempting to use setrlimits for memory RLIMIT_AS will always
   ;; produce an invalid argument error on Cygwin (tested on
-- 
2.13.0




             reply	other threads:[~2017-05-16  9:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-16  9:35 manolis837 [this message]
2017-05-16 19:47 ` [PATCH] On Hurd, skip tests that require working setrlimits for memory Andy Wingo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170516093500.4773-1-manolis837@gmail.com \
    --to=manolis837@gmail.com \
    --cc=guile-devel@gnu.org \
    --cc=rennes@openmailbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).