mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 14:49:16 +02: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, _Stream2: IStream;
|
||||
cbRead, cbWritten: LargeInt;
|
||||
cbRead1: DWord;
|
||||
NewPos: Int64;
|
||||
buf: array[0..3] of char;
|
||||
begin
|
||||
@ -25,10 +26,10 @@ begin
|
||||
_Stream2.Seek(0, STREAM_SEEK_SET, NewPos);
|
||||
if (cbRead <> 3) or (cbWritten <> 3) then
|
||||
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
|
||||
halt(2);
|
||||
if (cbRead <> 3) or (cbWritten <> 3) then
|
||||
if (cbRead <> 3) or (cbRead1 <> 3) then
|
||||
halt(3);
|
||||
Stream1.Free;
|
||||
end.
|
Loading…
Reference in New Issue
Block a user