Matthias made the following comments based on a personal project of his:
I don't really have enough spare time to make a nice release of SymUnit, still I think it might be useful for you to receive the input I mentioned when we met the last time. So here we go:
1) As from UIQ 3.1 you could also use the SVG, however the mbm would be backward compatible to 3.0:
CAPTION_AND_ICON_INFO
{
caption = "SymbianOSUnit";
number_of_icons = 3;
icon_file = "\\Resource\\Apps\\SymbianOSUnit.svg";
}
2) For this kind of testing you definitely do not want to have the fancy memory checking/freeing mechanism and therefore you should
remove (this will also cause the memory size-checking to return the wrong non-useful value).
// STATICLIBRARY qikalloc.lib
// LIBRARY qikallocdll.lib
3) I think a namespace should be ended by a semicolon
namespace TestUtils
{
TBool WaitForActiveSchedulerStopL( TInt aTimeoutSeconds );
enum TThreadWaitOption { EWaitForExit, ENoWaitForExit };
void RunInSeparateThreadL( const TCallBack& aFunctionToRun, TThreadWaitOption aWaitForExit = EWaitForExit );
}
4) Ease your life by changing the small testgen.bat script. What's wrong in including ALL header files? Thereby you do not need to edit the script anymore
rem Created by Penrillian, Smartphone Software Innovators
rem See
http://www.penrillian.com
perl -S ..\..\SymbianOSUnit\cxxtestgen.pl -o *.h
@pause
Cheers
Maze