aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting/RunMacOSUnitTests.sh
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-03-13 04:30:22 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-03-13 04:30:22 +0000
commiteb030f647c066da594c612db4ba482612842361e (patch)
treebe8671633087ba276cac332fce017744b724eed0 /UnitTesting/RunMacOSUnitTests.sh
parent993a40ed9233e2b250978bcef385154818db3adb (diff)
[Author: dmaclach]
Fixes up the leaks in the tests. Sets up the RunMacOSUnitTest script so that it actually works correctly with respect to enabling leaks. DELTA=20 (4 added, 3 deleted, 13 changed) R=thomasvl
Diffstat (limited to 'UnitTesting/RunMacOSUnitTests.sh')
-rwxr-xr-xUnitTesting/RunMacOSUnitTests.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/UnitTesting/RunMacOSUnitTests.sh b/UnitTesting/RunMacOSUnitTests.sh
index 7b5e0a0..87f678f 100755
--- a/UnitTesting/RunMacOSUnitTests.sh
+++ b/UnitTesting/RunMacOSUnitTests.sh
@@ -165,6 +165,7 @@ RunTests() {
AppendToSymbolsLeaksShouldIgnore "+[IKSFEffectDescription initialize]"
# Running leaks on architectures that support leaks.
+ export MallocStackLogging=YES
export GTM_LEAKS_SYMBOLS_TO_IGNORE="${GTM_LEAKS_SYMBOLS_TO_IGNORE}"
ARCHS="${LEAK_TEST_ARCHS}"
VALID_ARCHS="${LEAK_TEST_ARCHS}"
@@ -182,7 +183,6 @@ RunTests() {
export MallocScribble=YES
export MallocPreScribble=YES
export MallocGuardEdges=YES
-export MallocStackLogging=YES
export NSAutoreleaseFreedObjectCheckEnabled=YES
export OBJC_DEBUG_FRAGILE_SUPERCLASSES=YES
@@ -206,7 +206,7 @@ fi
# If leaks testing is enabled, we have to go through our convoluted path
# to handle architectures that don't allow us to do leak testing.
-if [ GTM_ENABLE_LEAKS ]; then
+if [ $GTM_ENABLE_LEAKS ]; then
RunTests
else
"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests"