mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 15:49:27 +02:00
+ Now uses PathSeparator and DirectorySeparator
This commit is contained in:
parent
4029ec8a3a
commit
cbede72cd0
@ -5,16 +5,16 @@ uses
|
||||
|
||||
const
|
||||
fname = 'Makefile';
|
||||
|
||||
ThisDir = '.'+DirectorySeparator;
|
||||
var
|
||||
fn : string;
|
||||
begin
|
||||
fn:=FileSearch(fname,';');
|
||||
fn:=FileSearch(fname,PathSeparator);
|
||||
writeln('found: ',fn);
|
||||
if fn<>fname then
|
||||
halt(1);
|
||||
fn:=FileSearch('./'+fname,';');
|
||||
fn:=FileSearch(ThisDir+fname,PathSeparator);
|
||||
writeln('found: ',fn);
|
||||
if fn<>'./'+fname then
|
||||
if fn<>'.'+fname then
|
||||
halt(1);
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user