[Libreoffice] [PATCH] bug fdo#37164
Noel Power
nopower at suse.com
Tue Sep 20 09:13:49 PDT 2011
On 20/09/11 16:27, Caolán McNamara wrote:
> On Tue, 2011-09-20 at 09:59 +0100, Noel Power wrote:
>> I'm looking for someone to bless/approve ( and or ) commit the patch to
>> the 3.4 branch
> The only things outside of testtool which are touched look like an early
> return from SbFormFactory::CreateObject if vba is enabled and a removed
> HelpID from the built-in file dialog, those two changes are needed for
> this right ?
correct, the SbFormFactory::CreateObject calls 'Find' which ends up in
the testtool code and throws an error for some reason I can't recall,
the SbFormFactory only does something useful if the result of the 'Find'
is a SbUserFormModule which is a compatability module ( e.g. for
UserForms ) so returning early prevents the error and the lets the
testtool continue.
The HelpID that is removed I would guess is probably the product of a
bad merge, the removed HelpId is bogus, is in the wrong place and
actually overwrites the HID of the file picker itself, again this caused
some failure when executing the test.
>
> How do we test this thing again ?
>
always it seems with difficulty and pain, but... with a suitable
.testoolrc in your home directory ( see my working copy attached ) file
with the correct entries things *should* work out of the box
so.. all you need to do is just copy the .testtoolrc into your home
directory, fire up an editor and edit the paths as appropriate ( there
is some option to actually fill in the right details from the testtool
gui but I never have used that )
just run the testtool from the cmd line e.g.
[INSTALL_PATH]/basis-link/program/testtool.bin
open a test such as
testautomation/framework/required/f_topten.bas
press F5 to run
( do it all from the cmd line if you like
[INSTALL_PATH]/basis-link/program/testtool.bin -run
testautomation/framework/required/f_topten.bas )
the test above runs in a reasonable amount of time ( couple of minutes )
and should have no errors and some ( 4 iirc ) warnings
Noel
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: .testtoolrc
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110920/3ef777c4/attachment.asc>
More information about the LibreOffice
mailing list