Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1307)

Unified Diff: testing/iossim/iossim.mm

Issue 11699005: In iossim, ignore harmless messages from launchd. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/iossim/iossim.mm
diff --git a/testing/iossim/iossim.mm b/testing/iossim/iossim.mm
index 770ca4193bf85702bbad421b29b6f5e1543476bb..a440e055bfdf229c4599d18fbef4a4644a1ae509 100644
--- a/testing/iossim/iossim.mm
+++ b/testing/iossim/iossim.mm
@@ -288,8 +288,12 @@ void LogWarning(NSString* format, ...) {
BOOL entryFound = NO;
TVL 2012/12/28 23:47:53 maybe change this to be something like "badEntryFo
lliabraa 2013/01/02 11:48:34 Done.
aslmsg entry;
while ((entry = aslresponse_next(response)) != NULL) {
+ const char* message = asl_get(entry, ASL_KEY_MSG);
+ LogWarning(@"Console message: %s", message);
+ // Some messages are harmless, so don't trigger a failure for them.
+ if (strstr(message, "The following job tried to hijack the service"))
+ continue;
entryFound = YES;
- LogWarning(@"Console message: %s", asl_get(entry, ASL_KEY_MSG));
}
// launchd only sends messages if the process crashed or exits with a
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698