Test suite results for test file webtbs/tw3758.pp

Test run data :

Free Pascal Compiler Test Suite Results

View Test suite results

Please specify search criteria:
File:
Operating system:
Processor:
Version
Date
Submitter
Machine
Comment
Limit
Cond
Category
Only failed tests
Hide skipped tests
List all tests

Test file "webtbs/tw3758.pp" information:

t_id 1529
t_adddate 2005/03/15
t_result 0
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=50 Percentage= 100.00

Result type Cat. Count Percentage First date Last Date
Successfully run 50 100.0 2024/05/20 16:41:00 44 2024/05/20 23:36:00 37
i386 20 40.0 2024/05/20 16:41:00 44 2024/05/20 23:35:00 0
m68k 1 2.0 2024/05/20 22:44:00 190 2024/05/20 22:44:00 190
sparc 8 16.0 2024/05/20 23:25:00 38 2024/05/20 23:36:00 37
powerpc 1 2.0 2024/05/20 23:05:00 185 2024/05/20 23:05:00 185
arm 1 2.0 2024/05/20 22:30:00 59 2024/05/20 22:30:00 59
x86_64 6 12.0 2024/05/20 16:52:00 25 2024/05/20 19:35:00 26
powerpc64 2 4.0 2024/05/20 23:13:00 213 2024/05/20 23:20:00 71
mips 1 2.0 2024/05/20 22:51:00 240 2024/05/20 22:51:00 240
mipsel 1 2.0 2024/05/20 22:58:00 148 2024/05/20 22:58:00 148
aarch64 9 18.0 2024/05/20 16:47:00 34 2024/05/20 22:24:00 44
linux 11 22.0 2024/05/20 22:24:00 44 2024/05/20 23:30:00 79
solaris 25 50.0 2024/05/20 16:41:00 44 2024/05/20 23:36:00 37
darwin 8 16.0 2024/05/20 16:47:00 34 2024/05/20 17:50:00 56
win64 6 12.0 2024/05/20 16:52:00 25 2024/05/20 19:35:00 26
3.3.1 17 34.0 2024/05/20 17:01:00 26 2024/05/20 23:35:00 0
3.2.2 8 16.0 2024/05/20 16:41:00 44 2024/05/20 17:30:00 45
3.2.3 25 50.0 2024/05/20 16:47:00 34 2024/05/20 23:36:00 37

Source:

{ Source provided for Free Pascal Bug Report 3758 }
{ Submitted by "Martin Schreiber" on  2005-03-07 }
{ e-mail:  }
program project1;

{$mode objfpc}{$H+}

uses
  Classes, SysUtils;

type

 ttestcomp = class(tcomponent)
  private
   fwstr: widestring;
  published
   property wstr: widestring read fwstr write fwstr;
  end;

var
 stream1,stream2: tmemorystream;
 f: tfilestream;
 testcomp1,testcomp2: ttestcomp;
 str1: widestring;

begin
 setlength(str1,2);
 str1[1]:= widechar($1f00);
 str1[2]:= widechar($203);
 stream1:= tmemorystream.create;
 stream2:= tmemorystream.create;
 testcomp1:= ttestcomp.create(nil);
 testcomp2:= ttestcomp.create(nil);
 try
  testcomp1.wstr:= str1;
  stream1.writecomponent(testcomp1);
  stream1.position:= 0;
  objectbinarytotext(stream1,stream2);
  stream1.clear;
  stream2.position:= 0;
  f:= tfilestream.create('test.txt',fmcreate);
  f.copyfrom(stream2,0);
  f.free;
  stream2.position:= 0;
  objecttexttobinary(stream2,stream1);
  stream1.position:= 0;
  stream1.readcomponent(testcomp2);
  if testcomp2.wstr = str1 then begin
   writeln('OK');
  end
  else begin
   writeln('Error');
  end;
 finally
  stream1.free;
  stream2.free;
  testcomp1.free;
  testcomp2.free;
 end;
end.

Link to SVN view of webtbs/tw3758.pp source.