<div dir="ltr">Hey,<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 9, 2014 at 3:57 AM, Takeshi Abe <span dir="ltr"><<a href="mailto:tabe@fixedpoint.jp" target="_blank">tabe@fixedpoint.jp</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am going to prepare a unit test for starmath's import filter, which is<br>
proposed in <a href="https://bugs.freedesktop.org/show_bug.cgi?id=70185" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=70185</a>.<br>
As a first step, I have made up the test case attached for importing a MathML<br>
file. Running the test case named "starmath_import" seems to finish reading<br>
the input .mml, but failed in the end with the following message.<br></blockquote><div><br></div><div>Great to see some progress in adding test for the Math module. The first steps until having a first working test are the hardest so I'll try to assist you here a bit.<br><br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---<br>
[build CUT] starmath_import<br>
warn:legacy.osl:5812:1:starmath/source/mathmlimport.cxx:537: So there *was* a uno problem after all<br>
/home/tabe/core/starmath/qa/extras/mmlimport-test.cxx:63:(anonymous namespace)::Test::testSimple<br>
assertion failed<br>
- Expression: bLoaded<br>
- failed to load file:///home/tabe/core/starmath/qa/extras/data/simple.mml<br>
<br>
mmlimport-test.cxx:63:Assertion<br>
Test name: (anonymous namespace)::Test::testSimple<br>
assertion failed<br>
- Expression: bLoaded<br>
- failed to load file:///home/tabe/core/starmath/qa/extras/data/simple.mml<br>
<br>
Failures !!!<br>
Run: 1   Failure total: 1   Failures: 1   Errors: 0<br>
warn:fwk:5812:1:framework/source/services/desktop.cxx:1020: Desktop disposed before terminating it<br>
warn:tools.debug:5812:1:tools/source/debug/debug.cxx:297: no DbgTestSolarMutex function set<br>
warn:fwk:5812:1:framework/source/services/desktop.cxx:185: Desktop not terminated before being destructed<br>
warn:legacy.osl:5812:1:unotools/source/config/configmgr.cxx:167: OSL_ASSERT: items_.empty()<br>
<br>
Error: a unit test failed, please do one of:<br>
<br>
export DEBUGCPPUNIT=TRUE            # for exception catching<br>
export CPPUNITTRACE="gdb --args"    # for interactive debugging on Linux<br>
export CPPUNITTRACE="\"[full path to devenv.exe]\" /debugexe" # for interactive debugging in Visual Studio<br>
export VALGRIND=memcheck            # for memory checking<br>
<br>
and retry using: make CppunitTest_starmath_import<br>
<br>
---<br>
<br>
As far as I see, in the following code around line 508 of<br>
starmath/source/mathmlimport.cxx<br>
---<br>
        uno::Reference <frame::XModel> xModel = GetModel();<br>
        uno::Reference <lang::XUnoTunnel> xTunnel;<br>
        xTunnel = uno::Reference <lang::XUnoTunnel> (xModel,uno::UNO_QUERY);<br>
        SmModel *pModel = reinterpret_cast<SmModel *><br>
            (xTunnel->getSomething(SmModel::getUnoTunnelId()));<br>
---<br>
pModel ended up being NULL, but I have no idea what really happens.<br>
Could you give me any clue?<br>
Thank you for your attention.<br>
<br>
Cheers,<br>
-- Takeshi Abe<br></blockquote></div><br><br></div><div class="gmail_extra">So this might be just a missing component file in the makefile. Could you please attach your work in progress patch so we can easily reproduce the problem and help you?<br><br></div><div class="gmail_extra">Regards,<br>Markus<br></div></div>