unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* [PATCH] On Hurd, skip tests that require working setrlimits for memory
@ 2017-05-16  9:35 manolis837
  2017-05-16 19:47 ` Andy Wingo
  0 siblings, 1 reply; 2+ messages in thread
From: manolis837 @ 2017-05-16  9:35 UTC (permalink / raw)
  To: guile-devel; +Cc: rennes

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




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] On Hurd, skip tests that require working setrlimits for memory
  2017-05-16  9:35 [PATCH] On Hurd, skip tests that require working setrlimits for memory manolis837
@ 2017-05-16 19:47 ` Andy Wingo
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2017-05-16 19:47 UTC (permalink / raw)
  To: manolis837; +Cc: rennes, guile-devel

On Tue 16 May 2017 11:35, manolis837@gmail.com writes:

> 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>.

Applied, thanks :)

Andy



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-16 19:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-16  9:35 [PATCH] On Hurd, skip tests that require working setrlimits for memory manolis837
2017-05-16 19:47 ` Andy Wingo

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).