Test suite results for test file test/units/objects/testobj2.pp

Test run data :

Run ID:
Operating system: linux
Processor: powerpc
Version: 3.2.3
Fails/OK/Total: 44/7941/7985
Version: 3.2.3
Full version: 3.2.3-1374-g849fbd722c-unpushed
Comment: -O1 -Xd -Fl/usr/lib32 -Fd -Fl/usr/lib/gcc/powerpc64-linux-gnu/13/32 -Fd
Machine: gcc203
Category: 1
SVN revisions: fdf93c5b29:849fbd722c:ae0fe8a6a0:d1c29e6cb9
Submitter: pierre
Date: 2024/04/19 11:03:00 <> 2024/04/10
Previous run: 933760
Next run: 936192

Hide skipped tests

Hide successful tests

Test file "test/units/objects/testobj2.pp" information:

t_id 262
t_adddate 2003/10/03
t_result 0
t_knownrunerror 0

Detailed test run results:

tr_idruntr_oktr_skiptr_result
443647905934965TrueFalseSuccessfully run

Record count: 1

No log of 934965.

Source:

{ Source provided for Free Pascal Bug Report 2043 }
{ Submitted by "Luis Castedo" on  2002-07-16 }
{ e-mail: castedo@elai.upm.es }
program tb1;

{$MODE TP}

uses
  Objects;

const
  csFName1 = 'tb1_1.tmp';
  csFName2 = 'tb1_2.tmp';

var
  pStream1: PStream;
  pStream2: PStream;
  lAux    : Longint;
  error : boolean;
begin
  error := false;
  Write('Error checking for object streams...'); 
  { Legal operation on pStream1 }
  pStream1 := New(PDosStream, Init(csFName1, stCreate));
  { Faulty operation on pStream2 }
  pStream2 := New(PDosStream, Init(csFName2, stOpenRead));
  if pStream2^.Status = stOk then
     error := true;
     
  { Legal operation on pStream1 }
  pStream1^.Write(lAux, SizeOf(lAux));
  { Normally, if the values are not shared, this should be ok! }
  if pStream1^.Status <> stOk then
     error := true;

  pStream2^.Free;
  pStream1^.Free;
  if error then
    Begin
      WriteLn('FAILED! Errors are mixed up!');
      halt(1);
    end
  else
      Writeln('Success!');
end.

{
  $Log: testobj2.pp,v $
  Revision 1.1  2002/10/31 12:59:11  carl
   * error code testing (based on bug report 2043)

}

Link to SVN view of test/units/objects/testobj2.pp source.