summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolis Ragkousis <manolis837@gmail.com>2017-05-16 12:35:00 +0300
committerAndy Wingo <wingo@pobox.com>2017-05-16 21:44:04 +0200
commit7ac3d17ceaffc5f068e500c30b1728eae12ae0f0 (patch)
treeb0a015fbe1cb9cf7e2a06dddfa52e1fddd1c6329
parent0c102b56e98da39b5a3213bdc567a31ad8ef3e73 (diff)
downloadguile-7ac3d17ceaffc5f068e500c30b1728eae12ae0f0.tar.gz
On Hurd, skip tests that require working setrlimits for memory
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.
-rwxr-xr-xtest-suite/standalone/test-out-of-memory6
-rwxr-xr-xtest-suite/standalone/test-stack-overflow6
2 files changed, 12 insertions, 0 deletions
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