[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 02/03: tests: Make 'test-guild-compile' more reliable.
From: |
Ludovic Courtès |
Subject: |
[Guile-commits] 02/03: tests: Make 'test-guild-compile' more reliable. |
Date: |
Wed, 04 Mar 2015 08:50:17 +0000 |
civodul pushed a commit to branch stable-2.0
in repository guile.
commit 9b8dbee0476c4e6a0233d2684f963e106d59d7e7
Author: Ludovic Courtès <address@hidden>
Date: Wed Mar 4 09:43:46 2015 +0100
tests: Make 'test-guild-compile' more reliable.
Before that it would occasionally fail because the "$target" (not the
intermediate temporary file) would be produced.
* test-suite/standalone/test-guild-compile: Call 'pause' before 'sleep'
in test program.
---
test-suite/standalone/test-guild-compile | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/test-suite/standalone/test-guild-compile
b/test-suite/standalone/test-guild-compile
index 525ecc6..5972d54 100755
--- a/test-suite/standalone/test-guild-compile
+++ b/test-suite/standalone/test-guild-compile
@@ -10,6 +10,11 @@ trap 'rm -f "$source" "$target"' EXIT
cat > "$source"<<EOF
(eval-when (expand load eval)
+ ;; Wait for SIGINT.
+ (pause)
+
+ ;; Then sleep so that the SIGINT handler gets to run
+ ;; and compilation doesn't complete before it runs.
(sleep 100))
(define chbouib 42)
EOF