Failing unit test in Mac OS X Yosemite 10.10.1

Renato Ferreira renato.wolp at gmail.com
Fri Dec 12 15:44:20 PST 2014


Hi everybody,

As I had mentioned in another thread, a unit test has been failing in my
machine for some time. This is not a fatal error, but I think it would be
beneficial to understand where the problem comes from.

The test is CppunitTest_sw_ooxmlexport (ooxmlimport failed for some time,
but apparently got fixed). It fails on the following condition:

Test name: testCropPixel::Import_Export_Import
assertion failed
- Expression: getXPath(pXmlDoc, "//a:srcRect", "l").toInt32() <= 21856

Failures !!!
Run: 106   Failure total: 1   Failures: 1   Errors: 0
warn:fwk:98596:1:framework/source/services/desktop.cxx:1020: Desktop
disposed before terminating it
2014-12-12 17:37:13.640 cppunittester[98596:7597699] ***
-[NSAutoreleasePool release]: This pool has already been released, do not
drain it (double release).
warn:legacy.osl:98596:1:unotools/source/config/configmgr.cxx:167:
OSL_ASSERT: items_.empty()

Error: a unit test failed, please do one of:

export DEBUGCPPUNIT=TRUE            # for exception catching
export CPPUNITTRACE="lldb --" # for interactive debugging on OSX
export VALGRIND=memcheck            # for memory checking

and retry using: make CppunitTest_sw_ooxmlexport

The following commit may be relevant:

commit b1b29ae795ff86097b21907f814d94bd5488929d
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Nov 20 12:06:11 2014 +0100

    ...at least, that's the value for me on Mac with retina

    Change-Id: I041b497bab9415b2b33d6b4b91f3c58ea9dbc05f

diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index 519ad65..96b0d0ee 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
@@ -484,9 +484,7 @@ DECLARE_OOXMLEXPORT_TEST(testCropPixel,
"crop-pixel.docx")
         // This is 17667 in the original document, was 504666 (so the image
         // become invisible), now is around 19072.
         (void) pXmlDoc;
-#ifndef MACOSX
-        CPPUNIT_ASSERT(getXPath(pXmlDoc, "//a:srcRect", "l").toInt32() <
20000);
-#endif
+        CPPUNIT_ASSERT(getXPath(pXmlDoc, "//a:srcRect", "l").toInt32() <=
21856);
     }
 }

My Mac (Retina 13") gives the value 22452, but I'm not able to tell which
value is "valid", or on which Mac with retina the other value was produced.
Does anybody else use OS X Yosemite here?

Thanks,
Renato.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20141212/f6355d9a/attachment.html>


More information about the LibreOffice mailing list