From 2fdc66658980b955e72df409bc474d79a7980d5b Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Tue, 12 May 2009 05:16:46 -0500 Subject: [PATCH] tools.deploy.test: use try-output-process, and run VM from .app bundle when testing deployed app. This makes the game-input deploy test work --- basis/tools/deploy/test/test.factor | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/basis/tools/deploy/test/test.factor b/basis/tools/deploy/test/test.factor index f997a6eb3a..9a54e65f1a 100644 --- a/basis/tools/deploy/test/test.factor +++ b/basis/tools/deploy/test/test.factor @@ -1,5 +1,5 @@ USING: accessors arrays continuations io.directories io.files.info -io.files.temp io.launcher kernel layouts math sequences system +io.files.temp io.launcher io.backend kernel layouts math sequences system tools.deploy.backend tools.deploy.config.editor ; IN: tools.deploy.test @@ -14,7 +14,6 @@ IN: tools.deploy.test [ "test.image" temp-file file-info size>> ] [ cell 4 / * ] bi* <= ; : run-temp-image ( -- ) - vm - "-i=" "test.image" temp-file append - 2array - swap >>command +closed+ >>stdin try-process ; \ No newline at end of file + os macosx? + "resource:Factor.app/Contents/MacOS/factor" normalize-path vm ? + "-i=" "test.image" temp-file append 2array try-output-process ; \ No newline at end of file