skip compile test when pause not available
authorMichael Gran <spk121@yahoo.com>
Tue, 24 Nov 2020 03:22:13 +0000 (19:22 -0800)
committerMichael Gran <spk121@yahoo.com>
Thu, 21 Jan 2021 23:32:06 +0000 (15:32 -0800)
* test-suite/standalone/test-guild-compile: abort if pause
    does not exist

test-suite/standalone/test-guild-compile

index 5972d547435c008a2b9ca8b6c28dcdb6725917df..edc623570a42d67c11a42be2846f89b6471a4519 100755 (executable)
@@ -10,8 +10,8 @@ trap 'rm -f "$source" "$target"' EXIT
 
 cat > "$source"<<EOF
 (eval-when (expand load eval)
-  ;; Wait for SIGINT.
-  (pause)
+  ;; Wait for SIGINT, if the pause function exists.
+  (if (defined? 'pause) (pause) (exit 77))
 
   ;; Then sleep so that the SIGINT handler gets to run
   ;; and compilation doesn't complete before it runs.