[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] On Hurd, skip tests that require working setrlimits for memory
From: |
manolis837 |
Subject: |
[PATCH] On Hurd, skip tests that require working setrlimits for memory |
Date: |
Tue, 16 May 2017 12:35:00 +0300 |
From: Manolis Ragkousis <address@hidden>
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
- [PATCH] On Hurd, skip tests that require working setrlimits for memory,
manolis837 <=