diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-11-30 15:04:37 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-12-07 15:53:01 +0100 |
commit | ddc71f6537d3b0ecd2c98a42ec48281e0309e576 (patch) | |
tree | 24f99251ff0971e09f24b1a9101ddee7b12e984b | |
parent | fff30fefb48e0a729f266c38f97ee4654c0b7ea1 (diff) |
do not globally export G_SLICE, GLIBCXX_FORCE_NEW, DBGSV_ERROR_OUT
-rw-r--r-- | solenv/gbuild/CppunitTest.mk | 8 | ||||
-rw-r--r-- | solenv/gbuild/JunitTest.mk | 6 | ||||
-rw-r--r-- | solenv/gbuild/extensions/post_AuxTargets.mk | 2 |
3 files changed, 5 insertions, 11 deletions
diff --git a/solenv/gbuild/CppunitTest.mk b/solenv/gbuild/CppunitTest.mk index afae72e17b09..aa87be6ede7c 100644 --- a/solenv/gbuild/CppunitTest.mk +++ b/solenv/gbuild/CppunitTest.mk @@ -29,9 +29,6 @@ # CppunitTest class -# in non-product builds, ensure that tools-based assertions do not pop up as message box, but are routed to the shell -DBGSV_ERROR_OUT := shell -export DBGSV_ERROR_OUT UNIT_FAILED_MSG := echo; echo "Error: a unit test failed, please do one of:"; echo; echo "export DEBUGCPPUNIT=TRUE \# for exception catching"; echo "export GDBCPPUNITTRACE=\"gdb --args\" \# for interactive debugging"; echo "export VALGRIND=memcheck \# for memory checking" ; echo "and retry." @@ -46,17 +43,16 @@ ifneq ($(strip $(VALGRIND)),) gb_CppunitTest_VALGRINDTOOL := valgrind --tool=$(VALGRIND) --num-callers=50 ifeq ($(strip $(VALGRIND)),memcheck) G_SLICE := always-malloc -export G_SLICE GLIBCXX_FORCE_NEW := 1 -export GLIBCXX_FORCE_NEW endif endif # defined by platform # gb_CppunitTest_TARGETTYPE # gb_CppunitTest_get_filename +# DBGSV_ERROR_OUT => in non-product builds, ensure that tools-based assertions do not pop up as message box, but are routed to the shell gb_CppunitTest_CPPTESTTARGET := $(call gb_Executable_get_target,cppunit/cppunittester) -gb_CppunitTest_CPPTESTCOMMAND := $(gb_CppunitTest_CPPTESTPRECOMMAND) STAR_RESOURCEPATH=$(dir $(call gb_ResTarget_get_outdir_target,example)) $(gb_CppunitTest_GDBTRACE) $(gb_CppunitTest_VALGRINDTOOL) $(gb_CppunitTest_CPPTESTTARGET) +gb_CppunitTest_CPPTESTCOMMAND := $(gb_CppunitTest_CPPTESTPRECOMMAND) $(if $(G_SLICE),G_SLICE=$(G_SLICE)) $(if $(GLIBCXX_FORCE_NEW),GLIBCXX_FORCE_NEW=$(GLIBCXX_FORCE_NEW)) DBGSV_ERROR_OUT=shell STAR_RESOURCEPATH=$(dir $(call gb_ResTarget_get_outdir_target,example)) $(gb_CppunitTest_GDBTRACE) $(gb_CppunitTest_VALGRINDTOOL) $(gb_CppunitTest_CPPTESTTARGET) gb_CppunitTest__get_linktargetname = CppunitTest/$(call gb_CppunitTest_get_filename,$(1)) # TODO: move this to platform under suitable name diff --git a/solenv/gbuild/JunitTest.mk b/solenv/gbuild/JunitTest.mk index b6ce9039a403..8f7c6aeb08bd 100644 --- a/solenv/gbuild/JunitTest.mk +++ b/solenv/gbuild/JunitTest.mk @@ -31,9 +31,6 @@ gb_JunitTest_JAVACOMMAND := $(JAVAINTERPRETER) $(JAVAIFLAGS) -# in non-product builds, ensure that tools-based assertions do not pop up as message box, but are routed to the shell -DBGSV_ERROR_OUT := shell -export DBGSV_ERROR_OUT .PHONY : $(call gb_JunitTest_get_clean_target,%) $(call gb_JunitTest_get_clean_target,%) : $(call gb_JavaClassSet_get_clean_target,$(call gb_JunitTest_get_classsetname,%)) @@ -42,13 +39,14 @@ $(call gb_JunitTest_get_clean_target,%) : $(call gb_JavaClassSet_get_clean_targe ifneq (,$(strip $(OOO_JUNIT_JAR))) +# DBGSV_ERROR_OUT => in non-product builds, ensure that tools-based assertions do not pop up as message box, but are routed to the shell .PHONY : $(call gb_JunitTest_get_target,%) $(call gb_JunitTest_get_target,%) : $(call gb_Output_announce,$*,$(true),JUT,2) $(call gb_Helper_abbreviate_dirs_native,\ rm -rf $(call gb_JunitTest_get_userdir,$*) && \ mkdir -p $(call gb_JunitTest_get_userdir,$*) && \ - ($(gb_JunitTest_JAVACOMMAND) \ + (DBGSV_ERROR_OUT=shell $(gb_JunitTest_JAVACOMMAND) \ -cp "$(CLASSPATH)" \ $(DEFS) \ org.junit.runner.JUnitCore \ diff --git a/solenv/gbuild/extensions/post_AuxTargets.mk b/solenv/gbuild/extensions/post_AuxTargets.mk index 962f2750b354..e585745ea553 100644 --- a/solenv/gbuild/extensions/post_AuxTargets.mk +++ b/solenv/gbuild/extensions/post_AuxTargets.mk @@ -50,7 +50,7 @@ fetch: $(SRCDIR)/src.downloaded # fixme: can we prevent these exports in the first place? $(SRCDIR)/Env.Host.sh: autogen.lastrun configure.in ooo.lst.in set_soenv.in - $(if $(gb_MINISOLARENV),unset GBUILDDIR gb_Helper_execute gb_XSLTPROC gb_Helper_set_ld_path gb_AWK DBGSV_ERROR_OUT && $(SRCDIR)/autogen.sh,@echo "cannot reconfigure from within solarenv" && rm -f $(SRCDIR)/Env.Host.sh && exit 2) + $(if $(gb_MINISOLARENV),unset gb_Helper_execute gb_Helper_set_ld_path && $(SRCDIR)/autogen.sh,@echo "cannot reconfigure from within solarenv" && rm -f $(SRCDIR)/Env.Host.sh && exit 2) $(WORKDIR)/bootstrap: @cd $(SRCDIR) && ./bootstrap |