From 11272eaa3260af6ed1ba141a155a767271ef2276 Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Thu, 22 Mar 2007 04:59:11 +0000 Subject: [PATCH] Add way to configure value of XPCOM_DEBUG_BREAK. b=374828 r=preed --- tools/tinderbox/build-seamonkey-util.pl | 5 ++--- tools/tinderbox/tinder-defaults.pl | 5 +++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/tinderbox/build-seamonkey-util.pl b/tools/tinderbox/build-seamonkey-util.pl index 474c535c3ab..44e4c0fb157 100644 --- a/tools/tinderbox/build-seamonkey-util.pl +++ b/tools/tinderbox/build-seamonkey-util.pl @@ -24,7 +24,7 @@ use Config; # for $Config{sig_name} and $Config{sig_num} use File::Find (); use File::Copy; -$::UtilsVersion = '$Revision: 1.352 $ '; +$::UtilsVersion = '$Revision: 1.353 $ '; package TinderUtils; @@ -900,8 +900,7 @@ sub BuildIt { # Bypass profile manager at startup. $ENV{MOZ_BYPASS_PROFILE_AT_STARTUP} = 1; - # Avoid debug assertion dialogs (win32) - $ENV{XPCOM_DEBUG_BREAK} = "warn"; + $ENV{XPCOM_DEBUG_BREAK} = "$Settings::MozAssertBehavior"; # Set up tag stuff. # Only one tag per file, so -r will override any -D settings. diff --git a/tools/tinderbox/tinder-defaults.pl b/tools/tinderbox/tinder-defaults.pl index 1072bbee92e..d43362b3e92 100644 --- a/tools/tinderbox/tinder-defaults.pl +++ b/tools/tinderbox/tinder-defaults.pl @@ -129,6 +129,11 @@ $MozConfigFileName = 'mozconfig'; $UseMozillaProfile = 1; $MozProfileName = 'default'; +# This sets the value of the XPCOM_DEBUG_BREAK environment variable. We +# default to 'warn', which suppresses the assertion dialogs on Windows +# and gives platform parity. Use 'abort' for fatal assertions. +$MozAssertBehavior = 'warn'; + #- Set these to what makes sense for your system $Make = 'gmake'; # Must be GNU make $MakeOverrides = '';