build-support: test failed on mac somehow, add a timeout so it fails faster.

db4
Doug Coleman 2014-09-30 12:42:25 -07:00
parent 3fdea2c66b
commit 90094dffac
1 changed files with 5 additions and 2 deletions

View File

@ -1,10 +1,13 @@
! Copyright (C) 2010 Doug Coleman. ! Copyright (C) 2010 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! 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 IN: build-support
CONSTANT: factor.sh-path "resource:build-support/factor.sh" CONSTANT: factor.sh-path "resource:build-support/factor.sh"
: factor.sh-make-target ( -- string ) : 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 ; utf8 [ readln ] with-process-reader ;