Skip to content

Commit

Permalink
build-support: test failed on mac somehow, add a timeout so it fails …
Browse files Browse the repository at this point in the history
…faster.
  • Loading branch information
erg committed Sep 30, 2014
1 parent 3fdea2c commit 90094df
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions extra/build-support/build-support.factor
@@ -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 ;

0 comments on commit 90094df

Please sign in to comment.