]> gitweb.factorcode.org Git - factor.git/commitdiff
alien.remote-control: using temp directory.
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 18 Jun 2012 19:33:14 +0000 (12:33 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 18 Jun 2012 19:33:14 +0000 (12:33 -0700)
basis/alien/remote-control/remote-control-tests.factor

index 8b6c5e9b22b4d7c396d37d8af75cb4d0ae501ecc..87a015a59fb51d4cfaf49a808dfb8ae13bacd6de 100644 (file)
@@ -11,7 +11,7 @@ IN: alien.remote-control.tests
     try-process ;
 
 : run-test ( -- line )
-    os windows? "temp/a.exe" "temp/a.out" ?
+    os windows? "a.exe" "a.out" ?
     ascii [ readln ] with-process-reader ;
 
 :: test-embedding ( code -- line )
@@ -36,9 +36,9 @@ int main(int argc, char **argv)
 }
         ]I
     ] with-string-writer
-    "resource:temp" [ compile-file ] with-directory
-    "resource:" [ run-test ] with-directory ;
+    [ compile-file ] with-temp-directory
+    [ run-test ] with-temp-directory ;
 
 ! [ "Done." ] [ "" test-embedding ] unit-test
 
-! [ "Done." ] [ "factor_yield();" test-embedding ] unit-test
\ No newline at end of file
+! [ "Done." ] [ "factor_yield();" test-embedding ] unit-test