mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 18:28:23 +02:00
* Add test for stderrtooutput
This commit is contained in:
parent
aa4136ce52
commit
58f9dc27ea
@ -47,6 +47,7 @@ type
|
||||
Procedure TestInputFile;
|
||||
Procedure TestOutputFile;
|
||||
Procedure TestStdErrFile;
|
||||
Procedure TestStdErrToStdOut;
|
||||
Procedure TestInputNull;
|
||||
Procedure TestOutputFileExistingAppend;
|
||||
Procedure TestOutputFileExistingTruncate;
|
||||
@ -403,6 +404,16 @@ begin
|
||||
AssertGenOutLinesFile(GetTestFile(fntestoutput),3);
|
||||
end;
|
||||
|
||||
procedure TTestProcess.TestStdErrToStdOut;
|
||||
begin
|
||||
Proc.Executable:=GetHelper(genout);
|
||||
Proc.Options:=Proc.Options+[poStderrToOutPut];
|
||||
Proc.Parameters.Add('-3');
|
||||
Proc.OutputDescriptor.FileName:=GetTestFile(fntestoutput);
|
||||
Proc.Execute;
|
||||
AssertGenOutLinesFile(GetTestFile(fntestoutput),3);
|
||||
end;
|
||||
|
||||
procedure TTestProcess.TestInputNull;
|
||||
|
||||
var
|
||||
|
Loading…
Reference in New Issue
Block a user