summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Gran <spk121@yahoo.com>2022-09-20 15:01:20 -0700
committerMichael Gran <spk121@yahoo.com>2022-09-20 15:09:35 -0700
commit130463be2a38278f6b3057a4c4090b9d21d4bbcd (patch)
tree8b709c1d694b75c0f763577e65fe14a8eab9c857
parent61393a5da63a64557899faf3747262121ac309ca (diff)
downloadguile-130463be2a38278f6b3057a4c4090b9d21d4bbcd.tar.gz
When fork unavailable, skip standalone tests that require it
MinGW is missing fork. * test-suite/standalone/test-close-on-exec: modified * test-suite/standalone/test-signal-fork: modified
-rwxr-xr-xtest-suite/standalone/test-close-on-exec3
-rwxr-xr-xtest-suite/standalone/test-signal-fork5
2 files changed, 7 insertions, 1 deletions
diff --git a/test-suite/standalone/test-close-on-exec b/test-suite/standalone/test-close-on-exec
index 1eb46c20a..6525f0d77 100755
--- a/test-suite/standalone/test-close-on-exec
+++ b/test-suite/standalone/test-close-on-exec
@@ -4,6 +4,9 @@ exec guile -q -s "$0" "$@"
;;; Exercise the 'e' flag to 'open-file' (O_CLOEXEC).
+(unless (provided? 'fork)
+ (exit 77))
+
(define file
(string-append (or (getenv "TMPDIR") "/tmp")
"/guile-test-close-on-exec-"
diff --git a/test-suite/standalone/test-signal-fork b/test-suite/standalone/test-signal-fork
index 815118176..4307a61c1 100755
--- a/test-suite/standalone/test-signal-fork
+++ b/test-suite/standalone/test-signal-fork
@@ -4,7 +4,7 @@ exec guile -q -s "$0" "$@"
!#
;;; test-signal-fork --- Signal thread vs. fork. -*- Scheme -*-
;;;
-;;; Copyright (C) 2021 Free Software Foundation, Inc.
+;;; Copyright (C) 2021, 2022 Free Software Foundation, Inc.
;;;
;;; This library is free software; you can redistribute it and/or
;;; modify it under the terms of the GNU Lesser General Public
@@ -28,6 +28,9 @@ exec guile -q -s "$0" "$@"
(use-modules (ice-9 match))
+(unless (provided? 'fork)
+ (exit 77))
+
(setvbuf (current-output-port) 'none)
(sigaction SIGCHLD pk) ;start signal thread