diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-02-10 11:57:56 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-02-10 14:34:33 +0100 |
commit | e67fa2e3130495ace53412cc167b49670e3d8351 (patch) | |
tree | 085fe27444ea75364ce1b2f93787d15a8d00cad6 /sal | |
parent | 75d8a5450dfbc3bd509341126554cd1e9ecf5638 (diff) |
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@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/CppunitTest_sal_osl.mk | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |