Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-10

lazarus unit test failures: 198 out of 257 fail

9 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I don't know how frequent these are run or looked at, but I used yesterday's FPC 2.4.2rc1 and Lazarus 0.9.29 snapshot (that Vincent release) under Windows 2000, and got all these test failures...

------------------------------------
<?xml version="1.0"?>
<TestResults>
<!-- Generated using FPCUnit on 2010-10-19 13:27:38--> <TestListing>
<TestSuite Name="All tests" ElapsedTime="00:07:18.470" NumberOfErrors="1" NumberOfFailures="197" NumberOfRunTests="257" NumberOfIgnoredTests="0">

....snip....

</TestSuite>
</TestSuite>
</TestListing>
<NumberOfRunTests>257</NumberOfRunTests>
<NumberOfErrors>1</NumberOfErrors>
<NumberOfFailures>197</NumberOfFailures>
<NumberOfIgnoredTests>0</NumberOfIgnoredTests>
<TotalElapsedTime>00:07:18.480</TotalElapsedTime>
<DateTimeRan>2010-10-19 13:34:56</DateTimeRan>
</TestResults>

------------------------------------

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net:8080/fpgui/

Reply by email

Felipe Monteiro de Carvalho
to Graeme Geldenhuys

It seams that a lot of tests fail compiling, but they compile fine with Lazarus. I haven't yet found where the code to compile them is.

About the crash, the code to save the XML is trivial:

procedure TGUITestRunner.SaveAsToolButtonClick(Sender: TObject);
begin
  if SaveDialog.Execute then
    XMLSynEdit.Lines.SaveToFile(UTF8ToSys(SaveDialog.FileName));
end;

...

Procedure TStrings.SaveToStream(Stream: TStream);
Var
  S : String;
begin
  S:=Text;
  Stream.WriteBuffer(Pointer(S)^,Length(S));
end;

No idea what is wrong, as this is extensively used, it should work fine...

Felipe Monteiro de Carvalho

Reply by email

Felipe Monteiro de Carvalho
to Felipe Monteiro de Carvalho

The XML saving works here.

About the compilation, it seams in my case lazbuild is missing my primary-config-path, and the testcase GUI doesn't have a place to put it.

I would like to fix, but my IDE refuses to open the form view for guitestrunner.pas. Any ideas about how to force it to open this file as a form?

Felipe Monteiro de Carvalho

Reply by email

Mattias Gärtner
to Felipe Monteiro de Carvalho: It seams that a lot of tests fail compiling, but they compile fine with Lazarus. I…

Zitat von Felipe Monteiro de Carvalho :

Show quoted text 19 lines
It seams that a lot of tests fail compiling, but they compile fine with Lazarus. I haven't yet found where the code to compile them is. About the crash, the code to save the XML is trivial: procedure TGUITestRunner.SaveAsToolButtonClick(Sender: TObject); begin if SaveDialog.Execute then XMLSynEdit.Lines.SaveToFile(UTF8ToSys(SaveDialog.FileName)); end; ... Procedure TStrings.SaveToStream(Stream: TStream); Var S : String; begin S:=Text; Stream.WriteBuffer(Pointer(S)^,Length(S));

crash on S=''

end; No idea what is wrong, as this is extensively used, it should work fine...

Mattias

Reply by email

Graeme Geldenhuys
to Felipe Monteiro de Carvalho: The XML saving works here. About the compilation, it seams in my case lazbuild is missing…

Op 2010-10-19 15:56, Felipe Monteiro de Carvalho het geskryf:

I would like to fix, but my IDE refuses to open the form view for guitestrunner.pas. Any ideas about how to force it to open this file as a form?

Opens fine in the Form Designer here....

as for the crash, I'm running the tests again so I can save the xml file. This time I'm doing it inside a console window so I can catch the crash output.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net:8080/fpgui/

Reply by email

Graeme Geldenhuys
to Felipe Monteiro de Carvalho: It seams that a lot of tests fail compiling, but they compile fine with Lazarus. I…

Op 2010-10-19 15:43, Felipe Monteiro de Carvalho het geskryf:

It seams that a lot of tests fail compiling, but they compile fine with Lazarus. I haven't yet found where the code to compile them is.

Here some compile and some don't....

About the crash, the code to save the XML is trivial:

Crash report output... again, using FPC 2.4.2rc1 and Lazarus 0.9.29 from snapshot setup that Vincent released yesterday.

----------------------------------
c:\lazarus-0.9.29\test>runtestsgui.exe
TApplication.HandleException Stream write error
Stack trace:
$0042D047
$00599BEF TSYNEDITFILER__DESTROY, line 110 of syneditlines.pas $0040ADE2
$004250FF TGUITESTRUNNER__SAVEASTOOLBUTTONCLICK, line 317 of guitestrunner.p
as
$004E0004 TCONTROL__CLICK, line 2251 of ./include/control.inc $00505AA1 TTOOLBUTTON__CLICK, line 764 of ./include/toolbutton.inc $00504130 TTOOLBUTTON__MOUSEUP, line 136 of ./include/toolbutton.inc $004DF230 TCONTROL__DOMOUSEUP, line 1682 of ./include/control.inc $004DFD8D TCONTROL__WMLBUTTONUP, line 2148 of ./include/control.inc $0040B22A
$004DE188 TCONTROL__PERFORM, line 1025 of ./include/control.inc $004D4922 TWINCONTROL__ISCONTROLMOUSEMSG, line 4596 of ./include/wincontrol.
inc
$004D5A1C TWINCONTROL__WNDPROC, line 5172 of ./include/wincontrol.inc $0053B387 DELIVERMESSAGE, line 110 of lclmessageglue.pas $004F66FD WINDOWPROC, line 2422 of win32callback.inc $77E12CA8
$77E12DC5
WARNING: TLCLComponent.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?
Heap dump by heaptrc unit
64131171 memory blocks allocated : 1807559396/2065182128 64131159 memory blocks freed : 1807542593/2065165304 12 unfreed memory blocks : 16803
True heap size : 1179648 (96 used in System startup) True free heap : 1289456
Should be : 1161960
Call trace for block $02692438 size 108
$0040D818
$0043FFFA
$0042266E
$00421B29
$0053B3E0
$004F66FD
$77E12CA8
$77E12DC5
Call trace for block $03096968 size 28
$00421B29
$0053B3E0
$004F66FD
$77E12CA8
$77E12DC5
$77E12F0F
$00421B89
$00421FCF
Call trace for block $026353C8 size 64
$0040D818
$0040BAC1
$0042D053
$00599BEF
$0040ADE2
$004250FF
$004E0004
$00505AA1
Call trace for block $030E7EF0 size 24
$0040BAC1
$0042D053
$00599BEF
$0040ADE2
$004250FF
$004E0004
$00505AA1
$00504130
Call trace for block $030E8070 size 12
$0042D047
$00599BEF
$0040ADE2
$004250FF
$004E0004
$00505AA1
$00504130
$004DF230
Call trace for block $02635BA8 size 64
$0040D818
$0040BAC1
$0042D053
$0059A31A
$0059A922
$004250FF
$004E0004
$00505AA1
Call trace for block $0310B178 size 24
$0040BAC1
$0042D053
$0059A31A
$0059A922
$004250FF
$004E0004
$00505AA1
$00504130
Call trace for block $0310A998 size 12
$0042D047
$0059A31A
$0059A922
$004250FF
$004E0004
$00505AA1
$00504130
$004DF230
Call trace for block $03108718 size 12
$0059A188
$0059A8A9
$004250FF
$004E0004
$00505AA1
$00504130
$004DF230
$004DFD8D
Call trace for block $032F4610 size 16384
$0040D818
$00599B68
$0059A157
$0059A8A9
$004250FF
$004E0004
$00505AA1
$00504130
Call trace for block $032C44C8 size 24
$0059A8A9
$004250FF
$004E0004
$00505AA1
$00504130
$004DF230
$004DFD8D
$0040B22A
Call trace for block $032CD240 size 47
$00547B12
$00548563
$005484E7
$77E12CA8
$77E189B9
$77E1451E
$77E14925
$77B56815

c:\lazarus-0.9.29\test>

----------------------------------

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net:8080/fpgui/

Reply by email

Vincent Snijders
to Graeme Geldenhuys: I don't know how frequent these are run or looked at, but I used yesterday's FPC 2.4.2rc1…

2010/10/19 Graeme Geldenhuys :

Show quoted text 28 lines
Hi, I don't know how frequent these are run or looked at, but I used yesterday's FPC 2.4.2rc1 and Lazarus 0.9.29 snapshot (that Vincent release) under Windows 2000, and got all these test failures... ------------------------------------ <?xml version="1.0"?> <TestResults> ?<!-- Generated using FPCUnit on 2010-10-19 13:27:38--> ?<TestListing> ? ?<TestSuite Name="All tests" ElapsedTime="00:07:18.470" NumberOfErrors="1" NumberOfFailures="197" NumberOfRunTests="257" NumberOfIgnoredTests="0"> ....snip.... ? ? </TestSuite> ? ?</TestSuite> ?</TestListing> ?<NumberOfRunTests>257</NumberOfRunTests> ?<NumberOfErrors>1</NumberOfErrors> ?<NumberOfFailures>197</NumberOfFailures> ?<NumberOfIgnoredTests>0</NumberOfIgnoredTests> ?<TotalElapsedTime>00:07:18.480</TotalElapsedTime> ?<DateTimeRan>2010-10-19 13:34:56</DateTimeRan> </TestResults>

I just ran them on windows xp with fpc 2.5.1 and got 25 errors, not unexpectedly since they were largely unmaintained. Most examples simply only get tested when run during release preparations.

Vincent

Reply by email