mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-05 14:29:31 +01:00
tests: fix test for powerpc
git-svn-id: trunk@15151 -
This commit is contained in:
parent
72758864e4
commit
f982d041e5
@ -12,6 +12,7 @@ var
|
|||||||
Stream1: TMemoryStream;
|
Stream1: TMemoryStream;
|
||||||
_Stream1, _Stream2: IStream;
|
_Stream1, _Stream2: IStream;
|
||||||
cbRead, cbWritten: LargeInt;
|
cbRead, cbWritten: LargeInt;
|
||||||
|
cbRead1: DWord;
|
||||||
NewPos: Int64;
|
NewPos: Int64;
|
||||||
buf: array[0..3] of char;
|
buf: array[0..3] of char;
|
||||||
begin
|
begin
|
||||||
@ -25,10 +26,10 @@ begin
|
|||||||
_Stream2.Seek(0, STREAM_SEEK_SET, NewPos);
|
_Stream2.Seek(0, STREAM_SEEK_SET, NewPos);
|
||||||
if (cbRead <> 3) or (cbWritten <> 3) then
|
if (cbRead <> 3) or (cbWritten <> 3) then
|
||||||
halt(1);
|
halt(1);
|
||||||
_Stream2.Read(@buf[0], cbRead, @cbWritten);
|
_Stream2.Read(@buf[0], cbRead, @cbRead1);
|
||||||
if (buf[0] <> 't') or (buf[1] <> 'e') or (buf[2] <> 's') then
|
if (buf[0] <> 't') or (buf[1] <> 'e') or (buf[2] <> 's') then
|
||||||
halt(2);
|
halt(2);
|
||||||
if (cbRead <> 3) or (cbWritten <> 3) then
|
if (cbRead <> 3) or (cbRead1 <> 3) then
|
||||||
halt(3);
|
halt(3);
|
||||||
Stream1.Free;
|
Stream1.Free;
|
||||||
end.
|
end.
|
||||||
Loading…
Reference in New Issue
Block a user