io.launcher.unix: simplify use of temp-directory.

locals-and-roots
John Benediktsson 2016-03-18 10:32:49 -07:00
parent 63763caef4
commit 7c2e8d0fad
1 changed files with 3 additions and 4 deletions

View File

@ -95,15 +95,14 @@ IN: io.launcher.unix.tests
] unit-test ] unit-test
{ "hi\n" } [ { "hi\n" } [
temp-directory [ [
[ "aloha" delete-file ] ignore-errors [ "aloha" delete-file ] ignore-errors
<process> <process>
{ "echo" "hi" } >>command { "echo" "hi" } >>command
"aloha" >>stdout "aloha" >>stdout
try-process try-process
] with-directory "aloha" utf8 file-contents
temp-directory "aloha" append-path ] with-temp-directory
utf8 file-contents
] unit-test ] unit-test
[ "append-test" arch-temp-file delete-file ] ignore-errors [ "append-test" arch-temp-file delete-file ] ignore-errors