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