mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-22 12:49:19 +02:00
* FExpand bug
This commit is contained in:
parent
ef7b213483
commit
09ccea65cb
30
tests/webtbs/tw1964.pp
Normal file
30
tests/webtbs/tw1964.pp
Normal file
@ -0,0 +1,30 @@
|
||||
uses DOS;
|
||||
var
|
||||
error : boolean;
|
||||
|
||||
procedure Expand(FileMask: string);
|
||||
var
|
||||
FileMaskOut : string;
|
||||
begin
|
||||
WriteLn;
|
||||
WriteLn('Expanding "',FileMask,'"');
|
||||
FileMaskOut := FExpand(FileMask);
|
||||
WriteLn('To become "',FileMaskOut,'"');
|
||||
if FileMask<>FileMaskOut then
|
||||
error:=true;
|
||||
end;
|
||||
begin
|
||||
{$ifdef Win32}
|
||||
Expand('C:\Windows1\System');
|
||||
Expand('\\.\C\Windows1\System');
|
||||
Expand('C:\Windows1\System');
|
||||
if error then
|
||||
begin
|
||||
Writeln('ERROR!');
|
||||
Halt(1);
|
||||
end;
|
||||
{$else}
|
||||
Writeln('Win32 only test');
|
||||
{$endif}
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user