Bustage fix for bug 450884 - check for file existence before writing to them
authorMark Banner <bugzilla@standard8.plus.com>
Wed, 20 Aug 2008 15:32:54 +0100
changeset 148 ab2af37f765760aad0a61f4f30a904c70262b1cf
parent 147 184273b99f26d15e98aa01614d4d47afa9944537
child 149 9aff77e03bb47476a9799f3c334d36613396d014
push idunknown
push userunknown
push dateunknown
bugs450884
Bustage fix for bug 450884 - check for file existence before writing to them
mail/app/Makefile.in
--- a/mail/app/Makefile.in
+++ b/mail/app/Makefile.in
@@ -396,12 +396,12 @@ endif
 libs:: $(srcdir)/profile/prefs.js
 	$(INSTALL) $^ $(DIST)/bin/defaults/profile
 
 install:: $(srcdir)/profile/prefs.js
 	$(SYSINSTALL) $(IFLAGS1) $^  $(DESTDIR)$(mozappdir)/defaults/profile
 
 # Disable these tests due to bug 431125
 libs::
-	echo "function run_test() {dump('disabled for bug 431125');}" >$(DIST)/../_tests/xpcshell-simple/test_cookies/unit/test_cookies.js
-	echo "function run_test() {dump('disabled for TB for bug 431125');}" >$(DIST)/../_tests/xpcshell-simple/test_necko/unit/test_cookie_header.js
+	if test -f $(DIST)/../_tests/xpcshell-simple/test_cookies/unit/test_cookies.js; then echo "function run_test() {dump('disabled for bug 431125');}" >$(DIST)/../_tests/xpcshell-simple/test_cookies/unit/test_cookies.js; fi;
+	if test -f $(DIST)/../_tests/xpcshell-simple/test_necko/unit/test_cookie_header.js; then echo "function run_test() {dump('disabled for TB for bug 431125');}" >$(DIST)/../_tests/xpcshell-simple/test_necko/unit/test_cookie_header.js; fi;
 	$(RM) $(DIST)/bin/TestCookie
 	cp $(DIST)/bin/TestTArray $(DIST)/bin/TestCookie