Title: [150636] trunk/Tools
- Revision
- 150636
- Author
- sfal...@apple.com
- Date
- 2013-05-24 01:41:00 -0700 (Fri, 24 May 2013)
Log Message
Update prepareConsistentTestingEnvironment to use a non-deprecated API.
https://bugs.webkit.org/show_bug.cgi?id=116710
Reviewed by Mark Rowe.
* DumpRenderTree/mac/DumpRenderTree.mm:
(prepareConsistentTestingEnvironment): Use beginActivityWithOptions instead of beginSuspensionOfSystemBehaviors.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (150635 => 150636)
--- trunk/Tools/ChangeLog 2013-05-24 08:05:49 UTC (rev 150635)
+++ trunk/Tools/ChangeLog 2013-05-24 08:41:00 UTC (rev 150636)
@@ -1,3 +1,13 @@
+2013-05-24 Steve Falkenburg <sfal...@apple.com>
+
+ Update prepareConsistentTestingEnvironment to use a non-deprecated API.
+ https://bugs.webkit.org/show_bug.cgi?id=116710
+
+ Reviewed by Mark Rowe.
+
+ * DumpRenderTree/mac/DumpRenderTree.mm:
+ (prepareConsistentTestingEnvironment): Use beginActivityWithOptions instead of beginSuspensionOfSystemBehaviors.
+
2013-05-23 Lauro Neto <lauro.n...@openbossa.org>
Add missing dependencies to deps script.
Modified: trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm (150635 => 150636)
--- trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm 2013-05-24 08:05:49 UTC (rev 150635)
+++ trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm 2013-05-24 08:41:00 UTC (rev 150636)
@@ -860,8 +860,8 @@
makeLargeMallocFailSilently();
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
- static id assertion = [[[NSProcessInfo processInfo] beginSuspensionOfSystemBehaviors:NSSystemBehaviorCommonBehaviors
- reason:@"DumpRenderTree should not be subject to process suppression"] retain];
+ NSActivityOptions options = (NSActivityUserInitiatedAllowingIdleSystemSleep | NSActivityLatencyCritical) & ~(NSActivitySuddenTerminationDisabled | NSActivityAutomaticTerminationDisabled);
+ static id assertion = [[[NSProcessInfo processInfo] beginActivityWithOptions:options reason:@"DumpRenderTree should not be subject to process suppression"] retain];
ASSERT_UNUSED(assertion, assertion);
#endif
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes