Browse Source

+ Strange Windows behaviour. Count=0 is now checked.

michael 25 years ago
parent
commit
2c33709a7e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      fcl/tests/testproc.pp

+ 2 - 2
fcl/tests/testproc.pp

@@ -16,13 +16,13 @@ Var S : TProcess;
     I,Count : longint;
     
 begin
-  S:=TProcess.Create(theprogram,[poExecuteOnCreate,poUsePipes]);
+  S:=TProcess.Create(theprogram,[poExecuteOnCreate,poUsePipes,poNoConsole]);
   Repeat
     Count:=s.output.read(buf,BufSize);
     // reverse print for fun.
     For I:=Count downto 1 do
       write(buf[i]);
-  until Count<BufSize;  
+  until Count=0;  
   writeln;
   S.Free;  
 end.