Summary: | [WPE][GTK] Run tests with G_DEBUG=fatal-criticals | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Michael Catanzaro <mcatanzaro> | ||||||
Component: | WebKitGTK | Assignee: | Michael Catanzaro <mcatanzaro> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | bugs-noreply, buildbot, cgarcia, commit-queue, glenn, mcatanzaro | ||||||
Priority: | P2 | ||||||||
Version: | Other | ||||||||
Hardware: | PC | ||||||||
OS: | Linux | ||||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=183330 | ||||||||
Attachments: |
|
Description
Michael Catanzaro
2017-09-11 16:56:40 PDT
Actually I think we can't be this strict for API tests, looks like they're testing stuff that actually needs to emit warnings. E.g.: // There can't be more than one context with automation enabled GRefPtr<WebKitWebContext> otherContext = adoptGRef(webkit_web_context_new()); test->removeLogFatalFlag(G_LOG_LEVEL_WARNING); webkit_web_context_set_automation_allowed(otherContext.get(), TRUE); test->addLogFatalFlag(G_LOG_LEVEL_WARNING); g_assert(!webkit_web_context_is_automation_allowed(otherContext.get())); But API tests should still always crash on criticals. No exceptions to that. Let's use fatal-criticals for layout tests to be consistent. I'm not aware of any warnings being printed in layout tests, and the important part of this change is to get backtraces to criticals. Created attachment 320507 [details]
Patch
Comment on attachment 320507 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=320507&action=review > Tools/Scripts/run-gtk-tests:220 > + self._test_env["G_DEBUG"] = "fatal-criticals" This is not needed, glib tests are already run with both warnings and criticals fatal, that's why we need to change the flags in some test when we want to actually check the warnings. This is done by g_test_init using g_log_set_always_fatal(). Created attachment 320546 [details]
Patch
Comment on attachment 320546 [details]
Patch
Ok, let's try
Comment on attachment 320546 [details] Patch Clearing flags on attachment: 320546 Committed r221925: <http://trac.webkit.org/changeset/221925> All reviewed patches have been landed. Closing bug. Committed r221938: <http://trac.webkit.org/changeset/221938> |