<div dir="ltr">Hi,<br><br><br>I've been trying to run 'make check' in combination with building LibreOffice with gcov code coverage, and get failures for the following tests :<br><br><br>gb_GCOV=YES verbose=t make UITest_solver<br>gb_GCOV=YES verbose=t make CppunitTest_sccomp_solver<br>gb_GCOV=YES verbose=t make CppunitTest_sccomp_swarmsolvertest<br><br><br>I set the required *FLAGS on the autogen commandline, and ran make with 'gb_GCOV=YES'.<br><br>If I build LibreOffice normally, without setting the *FLAGS for gcov code coverage (and don't set 'gb_GCOV=YES'), the checks succeed.<br><br>I have included some of the output of the checks (see below), but am not really sure if these parts are any help in trying to troubleshoot this, if full logs are required, or something else entirely is needed. <br><br>(BTW: does this list support attachments, for example, to include full logs ? Or is something like <a href="http://pastebin.com">pastebin.com</a> preferred for these sorts of things ?)<br><br><br>- Maarten<br><br>------------------------------------------------------------------------------------------------<br><br><br><br><br>S=/home/maarten/src/libreoffice/core && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/CppunitTest/ && rm -fr $W/CppunitTest/sccomp_solver.test.user && cp -r $W/unittest $W/CppunitTest/sccomp_solver.test.user &&    rm -fr $W/CppunitTest/sccomp_solver.test.core && mkdir $W/CppunitTest/sccomp_solver.test.core && cd $W/C<br>ppunitTest/sccomp_solver.test.core && (  MAX_CONCURRENCY=4 MOZILLA_CERTIFICATE_FOLDER=dbm: SAL_DISABLE_SYNCHRONOUS_PRINTER_DETECTION=1 SAL_USE_VCLPLUGIN=svp LIBO_LANG=C  LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/program:$I/program":$W/UnpackedTarball/cppunit/src/cppunit/.libs        $W/LinkTarget/Exec<br>utable/cppunittester $W/LinkTarget/CppunitTest/libtest_sccomp_solver.so --headless "-env:BRAND_BASE_DIR=file://$S/instdir" "-env:BRAND_SHARE_SUBDIR=share" "-env:BRAND_SHARE_RESOURCE_SUBDIR=program/resource" "-env:UserInstallation=file://$W/CppunitTest/sccomp_solver.test.user"   "-env:CONFIGURATION_LAYERS=xcsxcu:file<br>://$I/share/registry xcsxcu:file://$W/unittest/registry"  "-env:UNO_TYPES=file://$I/program/types.rdb file://$I/program/types/offapi.rdb"  "-env:UNO_SERVICES=file://$W/Rdb/ure/services.rdb file://$W/Rdb/services.rdb" -env:URE_BIN_DIR=file://$I/program -env:URE_INTERNAL_LIB_DIR=file://$I/program -env:LO_LIB_DIR=file:<br>//$I/program -env:LO_JAVA_DIR=file://$I/program/classes --protector $W/LinkTarget/Library/unoexceptionprotector.so unoexceptionprotector --protector $W/LinkTarget/Library/unobootstrapprotector.so unobootstrapprotector   --protector $W/LinkTarget/Library/libvclbootstrapprotector.so vclbootstrapprotector   "-env:CPPUN<br>ITTESTTARGET=$W/CppunitTest/sccomp_solver.test"  )  > $W/CppunitTest/sccomp_solver.test.log 2>&1 || ( RET=$?; $S/solenv/bin/gdb-core-bt.sh $W/LinkTarget/Executable/cppunittester $W/CppunitTest/sccomp_solver.test.core $RET >> $W/CppunitTest/sccomp_solver.test.log 2>&1; cat $W/CppunitTest/sccomp_solver.test.log; $S/so<br>lenv/gbuild/platform/unittest-failed-default.sh Cppunit sccomp_solver)<br>[_RUN_____] (anonymous namespace)::LpSolverTest::testLpSolver<br>unknown:0:(anonymous namespace)::LpSolverTest::testLpSolver<br>An uncaught exception of type com.sun.star.loader.CannotActivateFactoryException<br>- loading component library <file:///home/maarten/src/libreoffice/core/instdir/program/libsolverlo.so> failed at /home/maarten/src/libreoffice/core/cppuhelper/source/shlib.cxx:312<br><br>(anonymous namespace)::LpSolverTest::testLpSolver finished in: 5006ms<br>[_RUN_____] (anonymous namespace)::LpSolverTest::testCoinMPSolver<br>unknown:0:(anonymous namespace)::LpSolverTest::testCoinMPSolver<br>An uncaught exception of type com.sun.star.loader.CannotActivateFactoryException<br>- loading component library <file:///home/maarten/src/libreoffice/core/instdir/program/libsolverlo.so> failed at /home/maarten/src/libreoffice/core/cppuhelper/source/shlib.cxx:312<br><br>(anonymous namespace)::LpSolverTest::testCoinMPSolver finished in: 803ms<br>##Failure Location unknown## : Error<br>Test name: (anonymous namespace)::LpSolverTest::testLpSolver<br>An uncaught exception of type com.sun.star.loader.CannotActivateFactoryException<br>- loading component library <file:///home/maarten/src/libreoffice/core/instdir/program/libsolverlo.so> failed at /home/maarten/src/libreoffice/core/cppuhelper/source/shlib.cxx:312<br><br>##Failure Location unknown## : Error<br>Test name: (anonymous namespace)::LpSolverTest::testCoinMPSolver<br>An uncaught exception of type com.sun.star.loader.CannotActivateFactoryException<br>- loading component library <file:///home/maarten/src/libreoffice/core/instdir/program/libsolverlo.so> failed at /home/maarten/src/libreoffice/core/cppuhelper/source/shlib.cxx:312<br><br>Failures !!!<br>Run: 2   Failure total: 2   Failures: 0   Errors: 2<br><br>Error: a unit test failed, please do one of:<br><br>make CppunitTest_sccomp_solver CPPUNITTRACE="gdb --args"<br>    # for interactive debugging on Linux<br>make CppunitTest_sccomp_solver VALGRIND=memcheck<br>    # for memory checking<br>make CppunitTest_sccomp_solver DEBUGCPPUNIT=TRUE<br>    # for exception catching<br><br>You can limit the execution to just one particular test by:<br><br>make CPPUNIT_TEST_NAME="testXYZ" ...above mentioned params...<br><br>make[1]: *** [/home/maarten/src/libreoffice/core/solenv/gbuild/CppunitTest.mk:121: /home/maarten/src/libreoffice/core/workdir/CppunitTest/sccomp_solver.test] Error 1<br>make[1]: Leaving directory '/home/maarten/src/libreoffice/core'<br>make[1]: Entering directory '/home/maarten/src/libreoffice/core'<br><br><br><br><------- snip -----------><br><br><br>(anonymous namespace)::SwarmSolverTest::testTwoVariables finished in: 1066ms<br>##Failure Location unknown## : Error<br>Test name: (anonymous namespace)::SwarmSolverTest::testUnconstrained<br>An uncaught exception of type com.sun.star.loader.CannotActivateFactoryException<br>- loading component library <file:///home/maarten/src/libreoffice/core/instdir/program/libsolverlo.so> failed at /home/maarten/src/libreoffice/core/cppuhelper/source/shlib.cxx:312<br><br>##Failure Location unknown## : Error<br>Test name: (anonymous namespace)::SwarmSolverTest::testVariableBounded<br>An uncaught exception of type com.sun.star.loader.CannotActivateFactoryException<br>- loading component library <file:///home/maarten/src/libreoffice/core/instdir/program/libsolverlo.so> failed at /home/maarten/src/libreoffice/core/cppuhelper/source/shlib.cxx:312<br><br>##Failure Location unknown## : Error<br>Test name: (anonymous namespace)::SwarmSolverTest::testVariableConstrained<br>An uncaught exception of type com.sun.star.loader.CannotActivateFactoryException<br>- loading component library <file:///home/maarten/src/libreoffice/core/instdir/program/libsolverlo.so> failed at /home/maarten/src/libreoffice/core/cppuhelper/source/shlib.cxx:312<br><br>##Failure Location unknown## : Error<br>Test name: (anonymous namespace)::SwarmSolverTest::testMultipleVariables<br>An uncaught exception of type com.sun.star.loader.CannotActivateFactoryException<br>- loading component library <file:///home/maarten/src/libreoffice/core/instdir/program/libsolverlo.so> failed at /home/maarten/src/libreoffice/core/cppuhelper/source/shlib.cxx:312<br><br>##Failure Location unknown## : Error<br>Test name: (anonymous namespace)::SwarmSolverTest::testTwoVariables<br>An uncaught exception of type com.sun.star.loader.CannotActivateFactoryException<br>- loading component library <file:///home/maarten/src/libreoffice/core/instdir/program/libsolverlo.so> failed at /home/maarten/src/libreoffice/core/cppuhelper/source/shlib.cxx:312<br><br>Failures !!!<br>Run: 5   Failure total: 5   Failures: 0   Errors: 5<br><br>Error: a unit test failed, please do one of:<br><br>make CppunitTest_sccomp_swarmsolvertest CPPUNITTRACE="gdb --args"<br>    # for interactive debugging on Linux<br>make CppunitTest_sccomp_swarmsolvertest VALGRIND=memcheck<br>    # for memory checking<br>make CppunitTest_sccomp_swarmsolvertest DEBUGCPPUNIT=TRUE<br>    # for exception catching<br><br>You can limit the execution to just one particular test by:<br><br>make CPPUNIT_TEST_NAME="testXYZ" ...above mentioned params...<br><br>make[1]: *** [/home/maarten/src/libreoffice/core/solenv/gbuild/CppunitTest.mk:121: /home/maarten/src/libreoffice/core/workdir/CppunitTest/sccomp_swarmsolvertest.test] Error 1<br>make[1]: Leaving directory '/home/maarten/src/libreoffice/core'<br>make[1]: Entering directory '/home/maarten/src/libreoffice/core'<br><br><br><------- snip -----------><br><br><br>[build UIT] solver<br>S=/home/maarten/src/libreoffice/core && I=$S/instdir && W=$S/workdir &&  rm -rf $W/UITest/solver/ && mkdir -p $W/UITest/solver//user/user && cp $S/qadevOOo/qa/registrymodifications.xcu $W/UITest/solver//user/user/ &&  rm -fr $W/UITest/solver/done.core && mkdir -p $W/UITest/solver/user/ && mkdir $W/UITest/solver/done<br>.core && cd $W/UITest/solver/done.core &&   (   TDOC="$S/sc/qa/uitest/data" BUNDLED_EXTENSIONS='$BRAND_BASE_DIR/NONE'   TEST_LIB=$W/LinkTarget/Library/libtest.so URE_BOOTSTRAP=vnd.sun.star.pathname:$I/program/fundamentalrc PYTHONPATH="$S/uitest:$S/unotest/source/python:$I/program:$S/sc/qa/uitest/solver/" TestUserDir<br>="file://$W/UITest/solver/" PYTHONDONTWRITEBYTECODE=0   MAX_CONCURRENCY=4 MOZILLA_CERTIFICATE_FOLDER=dbm: SAL_DISABLE_SYNCHRONOUS_PRINTER_DETECTION=1 SAL_USE_VCLPLUGIN=svp LIBO_LANG=C   /bin/sh $I/program/python $S/uitest/test_main.py --soffice="path:$I/program/soffice" --userdir=file://$W/UITest/solver/user --dir=$<br>S/sc/qa/uitest/solver/   > $W/UITest/solver/done.log 2>&1 || ( RET=$?; $S/solenv/bin/gdb-core-bt.sh $I/program/soffice.bin $W/UITest/solver/done.core $RET >> $W/UITest/solver/done.log 2>&1;  cat $W/UITest/solver/done.log; $S/solenv/gbuild/uitest-failed-default.sh UI solver))<br>test_solver (solver.solver) ... OfficeConnection: connecting to: uno:pipe,name=pytestb0e838d0-db93-11ec-a252-000c2909e7db;urp;StarOffice.ComponentContext<br>NoConnectException: sleeping...<br>NoConnectException: sleeping...<br>NoConnectException: sleeping...<br>NoConnectException: sleeping...<br>NoConnectException: sleeping...<br>NoConnectException: sleeping...<br>NoConnectException: sleeping...<br>['OnLoad']<br>OnLoadFinished<br>['OnLoad']<br>OnTitleChanged<br>['OnLoad']<br>OnFocus<br>['OnLoad']<br>OnViewCreated<br>['ModelessDialogVisible']<br>DialogExecute<br>['ModelessDialogVisible']<br>DialogExecute<br>['DialogExecute', 'ModelessDialogExecute', 'ModelessDialogVisible']<br>DialogClosed<br>['ModelessDialogVisible']<br>DialogClosed<br>Execution time for solver.solver.test_solver: 14.394<br>tearDown: calling terminate()...<br>...done<br>FAIL<br><br>======================================================================<br>FAIL: test_solver (solver.solver)<br>----------------------------------------------------------------------<br>Traceback (most recent call last):<br>  File "/home/maarten/src/libreoffice/core/sc/qa/uitest/solver/solver.py", line 55, in test_solver<br>    self.assertEqual("Solving successfully finished.", get_state_as_dict(xWarnDialog.getChild("label2"))["Text"])<br>AssertionError: 'Solving successfully finished.' != 'Solving in progress...'<br>- Solving successfully finished.<br>+ Solving in progress...<br><br><br>----------------------------------------------------------------------<br>Ran 1 test in 22.799s<br><br>FAILED (failures=1)<br>Tests run: 1<br>Tests failed: 1<br>Tests errors: 0<br>Tests skipped: 0<br><br>Error: a unit test failed:<br><br>To rerun just this failed test without all others, use:<br>    make UITest_solver<br><br>Or to run just a specific test case method, use:<br>    make UITest_solver UITEST_TEST_NAME="Module.ClassName.methodName"<br>where<br>    Module - the name of the python file (without the .py extension)<br>    Class - is the name in the "class Class" declaration<br><br>Or to do interactive debugging, run two shells with:<br>    LANG=C SAL_USE_VCLPLUGIN=gen make debugrun<br>    make gb_UITest_DEBUGRUN=T UITest_solver<br><br>The SAL_USE_VCLPLUGIN part is unnecessary if you are running on a kde desktop.<br>(The default gtk3 backend has issues with some uitests).<br><br>Failing that, put a<br>    time.sleep(60)<br>in the beginning of the method in the .py file,<br>and attach gdb to the running soffice process.<br><br>make[1]: *** [/home/maarten/src/libreoffice/core/solenv/gbuild/UITest.mk:60: /home/maarten/src/libreoffice/core/workdir/UITest/solver/done] Error 1<br>make[1]: Leaving directory '/home/maarten/src/libreoffice/core'<br><br><br><br></div>