Mercurial > projects > dang
changeset 17:2a7b05d2e4f9
Fixed tests.run - now works really nice
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Fri, 18 Apr 2008 17:55:42 +0200 |
parents | 59bfbaf8847f |
children | ab5f876b6e84 |
files | tests/run.d |
diffstat | 1 files changed, 7 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run.d Fri Apr 18 17:49:34 2008 +0200 +++ b/tests/run.d Fri Apr 18 17:55:42 2008 +0200 @@ -95,27 +95,16 @@ Stdout(" - ")(target.file)(".. "); process.execute; - auto buffer = new GrowBuffer(); - buffer.copy(process.stdout); -// auto result = process.wait; - - Process.Result result; + auto result = process.wait; - Stdout("1").newline; -// if(result.status == 0) -// { - Stdout("2").newline; - auto llvm_process = new Process("llvm-as",target.path~target.file); + if(result.status == 0) + { + auto llvm_process = new Process("llvm-as"); llvm_process.execute; - if(llvm_process.isRunning) - { - Stdout("3")(process.stdout)(llvm_process.stdin).newline; - // llvm_process.stdin.copy(buffer); - llvm_process.stdin.write("lalalala"); - Stdout("4").newline; + llvm_process.stdin.copy(process.stdout); + llvm_process.stdin.close(); result = llvm_process.wait; - } -// } + } if(result.status == 0) {