[Lazarus] lazarus unit test failures: 198 out of 257 fail

Mattias Gärtner nc-gaertnma at netcologne.de
Tue Oct 19 16:04:16 CEST 2010


Zitat von Felipe Monteiro de Carvalho <felipemonteiro.carvalho at gmail.com>:

> 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







More information about the Lazarus mailing list