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 |