]> gitweb.factorcode.org Git - factor.git/commitdiff
build-support: test failed on mac somehow, add a timeout so it fails faster.
authorDoug Coleman <doug.coleman@gmail.com>
Tue, 30 Sep 2014 19:42:25 +0000 (12:42 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Tue, 30 Sep 2014 19:42:25 +0000 (12:42 -0700)
extra/build-support/build-support.factor

index 177042e186d7a9a7cc77b05f41c9087d20b31906..7d32b2da53fa570a6c54946b2e6c7f3299692523 100644 (file)
@@ -1,10 +1,13 @@
 ! Copyright (C) 2010 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: arrays io io.backend io.encodings.utf8 io.launcher ;
+USING: accessors arrays calendar io io.backend io.encodings.utf8
+io.launcher ;
 IN: build-support
 
 CONSTANT: factor.sh-path "resource:build-support/factor.sh"
 
 : factor.sh-make-target ( -- string )
-    factor.sh-path normalize-path "make-target" 2array
+    <process>
+        factor.sh-path normalize-path "make-target" 2array >>command
+        10 seconds >>timeout
     utf8 [ readln ] with-process-reader ;