aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting/GTMUnitTestDevLog.m
diff options
context:
space:
mode:
Diffstat (limited to 'UnitTesting/GTMUnitTestDevLog.m')
-rw-r--r--UnitTesting/GTMUnitTestDevLog.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/UnitTesting/GTMUnitTestDevLog.m b/UnitTesting/GTMUnitTestDevLog.m
index 35e29ae..f2f9418 100644
--- a/UnitTesting/GTMUnitTestDevLog.m
+++ b/UnitTesting/GTMUnitTestDevLog.m
@@ -177,7 +177,14 @@ static BOOL gTrackingEnabled = NO;
format:@"Unexpected log: %@", logString];
}
} else {
- NSLog(@"Expected Log: %@", logString);
+ static BOOL envChecked = NO;
+ static BOOL showExpectedLogs = YES;
+ if (!envChecked) {
+ showExpectedLogs = getenv("GTM_SHOW_UNITTEST_DEVLOGS") ? YES : NO;
+ }
+ if (showExpectedLogs) {
+ NSLog(@"Expected Log: %@", logString);
+ }
}
}
} else {