[PATCH] Re: 1 sheet by default [was Re: Tinderbox failure, Linux-RHEL6-x86_64 at 14-with-check, MASTER, last success: 2012-05-15 18:12:02]

Stefan Knorr (Astron) heinzlesspam at googlemail.com
Wed May 30 06:53:51 PDT 2012


Hello Kendy, Stephan,

first: Stephan, I'm very sorry for breaking your tinderbox(es) for
days and not noticing it. (I just assumed my 2-byte change of a commit
was innocent enough. I'll do make check in the future as you advised.)

With some dumbluck and [1], I've managed to get it down to 1 failing test.

My approach so far was to just unconditionally add a sheet (in the
case of the XMLStylesExporter and XMLSettingsExporter I just made sure
these tests actually ran on Sheet 1 (=0), not Sheet 2 (=1)).
Since I guess my approach is less than optimal, do tell me if I need
to wrap stuff in try/catch or so. Or, if I should ask LibO how many
sheets there are before creating a new one. Or something else.

About the last failing test, sc_unoapi/ScModelObj, I am unsure where
it needs the second sheet, so I didn't add anything yet. Advice
appreciated.

Astron.

[1] http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/FirstSteps/Example:_Working_with_a_Spreadsheet_Document
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-up-unit-tests-that-assumed-two-or-more-sheets-pe.patch
Type: application/octet-stream
Size: 9086 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120530/b5577967/attachment.obj>


More information about the LibreOffice mailing list