Add a hack to fix much of the MozillaTest bustage, will follow up in bug 351968 and figure out the right way to do this...

This commit is contained in:
jwalden%mit.edu 2007-01-31 04:57:53 +00:00
Родитель 79f9ab2f16
Коммит a20e64e3cd
1 изменённых файлов: 10 добавлений и 2 удалений

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

@ -1820,10 +1820,18 @@ libs::
$(DEPTH)/_tests/xpcshell-simple/$(MODULE)/$$testdir; \
done
# topsrcdir can be relative, but since we need NATIVE_TOPSRCDIR to
# be absolute (it's passed to tests for use in getting access to
# files), we need to convert it.
#
# XXX find a better way to do this, because this probably isn't
# guaranteed to work right everywhere
_ABS_TOPSRCDIR := `dirname $(topsrcdir)`/`basename $(topsrcdir)`
ifdef CYGWIN_WRAPPER
NATIVE_TOPSRCDIR := `cygpath -wa $(topsrcdir)`
NATIVE_TOPSRCDIR := `cygpath -wa $(_ABS_TOPSRCDIR)`
else
NATIVE_TOPSRCDIR := $(topsrcdir)
NATIVE_TOPSRCDIR := $(_ABS_TOPSRCDIR)
endif # CYGWIN_WRAPPER
# Test execution