Only run jit-tests under valgrind if we built the JS engine with valgrind.h. Bug 725733, r=jimb.

--HG--
extra : rebase_source : 06d41845a5f16a05e2483cbfaa254fda5d343c98
This commit is contained in:
Jason Orendorff 2012-05-03 14:36:11 -05:00
Родитель 9adbc677f8
Коммит 5d9bfcbdc4
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -609,14 +609,17 @@ ifneq ($(OS_ARCH),WINNT) # FIXME: this should be made work on Windows too.
#check:: check-malloc-function-usage FIXME: disable on JM until closer to merge time. #check:: check-malloc-function-usage FIXME: disable on JM until closer to merge time.
endif endif
ifdef MOZ_VALGRIND
ifndef MOZ_ASAN ifndef MOZ_ASAN
JITTESTPARAMS="--valgrind" JITTEST_VALGRIND_FLAG = --valgrind
endif
endif endif
JITFLAGS = ,m,am,amd,n,mn,amn,amdn,mdn JITFLAGS = ,m,am,amd,n,mn,amn,amdn,mdn
check-jit-test:: check-jit-test::
$(wildcard $(RUN_TEST_PROGRAM)) $(PYTHON) -u $(srcdir)/jit-test/jit_test.py \ $(wildcard $(RUN_TEST_PROGRAM)) $(PYTHON) -u $(srcdir)/jit-test/jit_test.py \
--no-slow --no-progress --tinderbox --jitflags=$(JITFLAGS) $(JITTESTPARAMS) $(DIST)/bin/js$(BIN_SUFFIX) --no-slow --no-progress --tinderbox --jitflags=$(JITFLAGS) $(JITTEST_VALGRIND_FLAG) \
$(DIST)/bin/js$(BIN_SUFFIX)
check:: check-jit-test check:: check-jit-test

Просмотреть файл

@ -86,6 +86,7 @@ MOZ_MEMORY = @MOZ_MEMORY@
MOZ_PROFILING = @MOZ_PROFILING@ MOZ_PROFILING = @MOZ_PROFILING@
MOZ_JPROF = @MOZ_JPROF@ MOZ_JPROF = @MOZ_JPROF@
MOZ_SHARK = @MOZ_SHARK@ MOZ_SHARK = @MOZ_SHARK@
MOZ_VALGRIND = @MOZ_VALGRIND@
MOZ_CALLGRIND = @MOZ_CALLGRIND@ MOZ_CALLGRIND = @MOZ_CALLGRIND@
MOZ_VTUNE = @MOZ_VTUNE@ MOZ_VTUNE = @MOZ_VTUNE@
MOZ_ETW = @MOZ_ETW@ MOZ_ETW = @MOZ_ETW@