# HG changeset patch # User Anders Johnsen # Date 1208534142 -7200 # Node ID 2a7b05d2e4f9d7e317434655be6f5726472ba0a7 # Parent 59bfbaf8847fe9fca6ebf91158941bb1e65f850d Fixed tests.run - now works really nice diff -r 59bfbaf8847f -r 2a7b05d2e4f9 tests/run.d --- 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) {