[Libreoffice-commits] core.git: sal/CppunitTest_sal_osl.mk

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Wed Feb 10 13:35:21 UTC 2021


 sal/CppunitTest_sal_osl.mk |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e67fa2e3130495ace53412cc167b49670e3d8351
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Feb 10 11:57:56 2021 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Feb 10 14:34:33 2021 +0100

    Fix dependency of CppunitTest_sal_osl on CppunitTest_Module_DLL library
    
    The former only depends on the latter's library, not on actually running the
    latter test.  (Something like
    
    > $ make CppunitTest_sal_osl CPPUNIT_TEST_NAME=osl_FileBase::SystemPath_FileURL::getSystemPathFromFileURL_005
    > make -j 12 -rs -f Makefile.gbuild CppunitTest_sal_osl
    > [CUT] Module_DLL
    >
    > Fatal error: CPPUNIT_TEST_NAME contains no valid tests
    >
    > Error: a unit test failed, please do one of:
    >
    > make CppunitTest_Module_DLL CPPUNITTRACE="gdb --args"
    >     # for interactive debugging on Linux
    > make CppunitTest_Module_DLL VALGRIND=memcheck
    >     # for memory checking
    > make CppunitTest_Module_DLL DEBUGCPPUNIT=TRUE
    >     # for exception catching
    >
    > You can limit the execution to just one particular test by:
    >
    > make CPPUNIT_TEST_NAME="testXYZ" ...above mentioned params...
    >
    > make[1]: *** [solenv/gbuild/CppunitTest.mk:125: workdir/CppunitTest/Module_DLL.test] Error 1
    > make: *** [Makefile:166: CppunitTest_sal_osl] Error 2
    
    thus used to fail rather unexpectedly.)
    
    Change-Id: Id6051b192679d598100bbb5eae854bef59af9f44
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110698
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/sal/CppunitTest_sal_osl.mk b/sal/CppunitTest_sal_osl.mk
index 2e4b77509f56..b5e1b0658324 100644
--- a/sal/CppunitTest_sal_osl.mk
+++ b/sal/CppunitTest_sal_osl.mk
@@ -32,7 +32,7 @@ $(eval $(call gb_CppunitTest_use_libraries,sal_osl,\
 
 # the test uses the library created by Module_DLL
 $(call gb_CppunitTest_get_target,sal_osl) : \
-	$(call gb_CppunitTest_get_target,Module_DLL)
+	$(call gb_LinkTarget_get_target,$(call gb_CppunitTest_get_linktarget,Module_DLL))
 
 $(eval $(call gb_CppunitTest_use_executable,sal_osl,osl_process_child))
 


More information about the Libreoffice-commits mailing list