fpc/tests/webtbs/tw4038.pp
yury 22c413a93e * Disabled the test for Android.
git-svn-id: branches/targetandroid@23515 -
2013-01-24 21:01:36 +00:00

34 lines
763 B
ObjectPascal

{ Source provided for Free Pascal Bug Report 4038 }
{ Submitted by "Antonio Marti" on 2005-06-01 }
{ e-mail: windowze2000@yahoo.es }
{ %skiptarget=wince,android }
uses sysutils;
var b: byte;
s : string;
begin
{$ifdef unix}
s:='/bin/echo';
{$else}
{$ifdef windows}
s:='gecho';
{$else windows}
{$ifdef go32v2}
s:=FileSearch('gecho.exe',GetEnvironmentVariable('PATH'));
{$else go32v2}
{$IFDEF OS2}
s:=FileSearch('gecho.exe',GetEnvironmentVariable('PATH'));
{$ELSE OS2}
s:='echo';
{$ENDIF OS2}
{$endif go32v2}
{$endif windows}
{$endif}
writeln(executeprocess(s,'works1 works2 works3'));
writeln(executeprocess(s,'works1 works2 works3'));
writeln;
for b:=1 to 2 do
writeln(executeprocess(s,'fails1 fails2 fails3'));
end.