mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 428326 - Configuring with a relative srcdir breaks unit tests in XPCOM, r=luser a=beltzner
This commit is contained in:
parent
772184b20b
commit
c62653c93e
@ -147,6 +147,8 @@ else
|
||||
getnativepath = $(1)
|
||||
endif
|
||||
|
||||
abs_srcdir = $(shell cd $(srcdir) && pwd)
|
||||
|
||||
check::
|
||||
@echo "Running TestVersionComparator tests"
|
||||
@$(PERL) -w $(srcdir)/TestVersionComparatorRunner.pl "$(RUN_TEST_PROGRAM) $(FINAL_TARGET)/TestVersionComparator$(BIN_SUFFIX)"
|
||||
@ -166,7 +168,7 @@ check::
|
||||
echo "Scriptable object marked nonscriptable by xpidl"; \
|
||||
exit 1; \
|
||||
fi
|
||||
@rm -f $(DIST)/bin/components/compreg.dat; \
|
||||
regOrderDir="$(call getnativepath,${srcdir}/regorder)"; \
|
||||
rm -f $(DIST)/bin/components/compreg.dat; \
|
||||
regOrderDir="$(call getnativepath,$(abs_srcdir)/regorder)"; \
|
||||
XPCOM_DEBUG_BREAK=stack-and-abort $(RUN_TEST_PROGRAM) \
|
||||
$(DIST)/bin/TestRegistrationOrder$(BIN_SUFFIX) "$$regOrderDir"
|
||||
|
Loading…
Reference in New Issue
Block a user