fpc/tests/webtbs/tw1092.pp
2000-11-30 22:38:14 +00:00

22 lines
345 B
ObjectPascal

PROGRAM tbug1092;
USES Dos;
const
{$Ifdef linux}
path='/etc';
{$else}
path='c:\';
{$endif}
var
t : text;
BEGIN
{ create a file }
assign(t,'tbug1092.tmp');
rewrite(t);
close(t);
if FSearch('tbug1092.tmp',path)<>'tbug1092.tmp' then
begin
writeln('FSearch didn''t find file in the current dir!');
halt(1);
end;
END.