Browse Source

+ Now uses PathSeparator and DirectorySeparator

michael 23 years ago
parent
commit
cbede72cd0
1 changed files with 4 additions and 4 deletions
  1. 4 4
      tests/webtbs/tw1479.pp

+ 4 - 4
tests/webtbs/tw1479.pp

@@ -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.