Test suite results for test file webtbs/tw3814.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/tw3814.pp" information:

t_id 1553
t_adddate 2005/04/13
t_result 0
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=38 Percentage= 76.00

Skipped=3 Percentage= 6.00

Result type Cat. Count Percentage First date Last Date
Failed to compile 1 2.0 2024/10/19 12:56:00 67 2024/10/19 12:56:00 67
powerpc 1 100.0 2024/10/19 12:56:00 67 2024/10/19 12:56:00 67
aix 1 100.0 2024/10/19 12:56:00 67 2024/10/19 12:56:00 67
3.3.1 1 100.0 2024/10/19 12:56:00 67 2024/10/19 12:56:00 67
Failed to run 8 16.0 2024/10/19 09:25:00 118 2024/10/19 11:33:00 117
i386 2 25.0 2024/10/19 09:40:00 209 2024/10/19 10:08:00 202
powerpc 2 25.0 2024/10/19 10:03:00 203 2024/10/19 10:40:00 193
mipsel 1 12.5 2024/10/19 10:35:00 142 2024/10/19 10:35:00 142
sparc64 3 37.5 2024/10/19 09:25:00 118 2024/10/19 11:33:00 117
linux 8 100.0 2024/10/19 09:25:00 118 2024/10/19 11:33:00 117
3.3.1 7 87.5 2024/10/19 09:40:00 209 2024/10/19 11:33:00 117
3.2.3 1 12.5 2024/10/19 09:25:00 118 2024/10/19 09:25:00 118
Successfully run 38 76.0 2024/10/19 08:15:00 27 2024/10/19 13:36:00 24
m68k 2 5.3 2024/10/19 09:50:00 39 2024/10/19 10:22:00 40
sparc 3 7.9 2024/10/19 09:01:00 54 2024/10/19 11:16:00 40
powerpc 4 10.5 2024/10/19 08:40:00 51 2024/10/19 13:26:00 65
arm 2 5.3 2024/10/19 09:36:00 32 2024/10/19 10:03:00 32
x86_64 10 26.3 2024/10/19 09:32:00 37 2024/10/19 13:36:00 24
powerpc64 7 18.4 2024/10/19 10:06:00 62 2024/10/19 11:23:00 69
mips 2 5.3 2024/10/19 09:54:00 35 2024/10/19 10:28:00 38
mipsel 1 2.6 2024/10/19 09:59:00 38 2024/10/19 09:59:00 38
aarch64 4 10.5 2024/10/19 08:15:00 27 2024/10/19 09:57:00 26
riscv64 2 5.3 2024/10/19 10:25:00 33 2024/10/19 11:10:00 26
loongarch64 1 2.6 2024/10/19 09:45:00 25 2024/10/19 09:45:00 25
linux 22 57.9 2024/10/19 08:15:00 27 2024/10/19 11:38:00 25
solaris 8 21.1 2024/10/19 13:22:00 24 2024/10/19 13:36:00 24
aix 8 21.1 2024/10/19 08:40:00 51 2024/10/19 13:26:00 65
3.3.1 20 52.6 2024/10/19 09:32:00 28 2024/10/19 13:26:00 65
3.2.3 18 47.4 2024/10/19 08:15:00 27 2024/10/19 13:36:00 24
Skipping test because for other target 3 6.0 2024/10/19 09:39:00 55 2024/10/19 11:13:00 63
i386 3 100.0 2024/10/19 09:39:00 55 2024/10/19 11:13:00 63
go32v2 3 100.0 2024/10/19 09:39:00 55 2024/10/19 11:13:00 63
3.3.1 3 100.0 2024/10/19 09:39:00 55 2024/10/19 11:13:00 63

Source:

{ Source provided for Free Pascal Bug Report 3695 }
{ Submitted by "Pedro Lopez-Cabanillas" on  2005-02-25 }
{ e-mail: plcl@telefonica.net }
program testsync;

{$ifdef FPC}
    {$mode delphi}
{$endif}

uses
{$ifdef unix}
cthreads,
{$endif unix}
Classes, SysUtils
;

type
    Tester = class
    private
	counter: Integer;
    public
	procedure count;
	procedure run;
    end;

    MyThread = class(TThread)
    private
        worker: Tester;
    public
	constructor Create(w: Tester);
	procedure Execute; override;
    end;

constructor MyThread.Create(w: Tester);
begin
  worker:= w;
  inherited Create(false);
end;

procedure MyThread.Execute;
begin
  WriteLn('Starting MyThread.Execute');
  repeat
    // sleep(500);
    Synchronize(worker.count);
  until Terminated;
  WriteLn('Ending MyThread.Execute');
end;

procedure Tester.count;
begin
  Inc(counter);
  WriteLn(counter);
end;

procedure Tester.run;
var
  thread: MyThread;
begin
  thread := MyThread.Create(Self);
  While counter<10 do
  begin
    CheckSynchronize(1000);
    //WriteLn('Loop forever inside Tester.run when compiled by FPC 1.9.8');
  end;
  thread.Terminate;
  thread.waitfor;
end;

var
  t: Tester;
begin
  t:=Tester.Create;
  t.run;
  t.free;
end.

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