Hi,
Attached is a patch for testreport.pp (part of fpcUnit) that corrects indentation of XML output listing all available test casses.
Patch needs to be applied from the root FPC 2.1.1 directory.
Regards,
- Graeme -

Mailing lists / fpc-devel / 2006-10
10 messages · 6 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi,
Attached is a patch for testreport.pp (part of fpcUnit) that corrects indentation of XML output listing all available test casses.
Patch needs to be applied from the root FPC 2.1.1 directory.
Regards,
- Graeme -
Thank you, applied the patch.
Michael.
Attached is a patch for testreport.pp (part of fpcUnit) that corrects indentation of XML…
I object to the inefficiency of this implementation. Isn't there a routine in system to generate a string of X characters ?
Micha
Yes. StringOfChar()
Michael.
I object to the inefficiency of this implementation. Isn't there a routine in system to…
DupeString
Darius Blaszijk wroteDupeString
Far less efficient, because for strings.
StringOfChar is optimized for characters.
Michael.
I object to the inefficiency of this implementation. Isn't there a routine in system to…
Thursday, October 26, 2006, 3:47:37 PM, Micha Nelissen wrote:
MN> I object to the inefficiency of this implementation. Isn't there a MN> routine in system to generate a string of X characters ?
Surely there is - StringOfChar()
Yes. StringOfChar() Michael.
Hi
Thanks for that, I didn't know about that function. Attached is the patch using the new StringOfChar.
Incidently the speed increase is not much, but yes it is faster. Maybe my test cases are just not big enough. ;-) I did 4 test runs with the old trSpace function and did 4 test runs with the new trSpace function outputing 80 lines of text each with varied levels of indentation.
The huge speed increase was: 0.00145 seconds
Thanks, that really cut down on my coffee break. :-)
Regards,
- Graeme -
Graeme Geldenhuys ha scritto:
There's another benefit, 7 lines of code less.
Btw, thank you for your constant work.
Dean
Hi Thanks for that, I didn't know about that function. Attached is the patch using the…
1. Further increased speed by removing your helper function altogether.
2. Made it thread-safe by making the global 'ulevel' variable an (optional) argument to the TestSuiteAsXML function.
Remember: As a general rule, global variables are evil :)
Then committed.
Michael.