Bug 220938 - [GLIB] API tests fail to report harness failures
Summary: [GLIB] API tests fail to report harness failures
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Lauro Moura
Keywords: InRadar
Depends on:
Reported: 2021-01-25 11:40 PST by Lauro Moura
Modified: 2021-01-27 08:58 PST (History)
4 users (show)

See Also:

Patch (2.26 KB, patch)
2021-01-25 20:18 PST, Lauro Moura
no flags Details | Formatted Diff | Diff
Patch for landing. (2.30 KB, patch)
2021-01-26 09:17 PST, Lauro Moura
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lauro Moura 2021-01-25 11:40:45 PST
The glib API test runner fails to report crashes in the test harness (e.g. the `beforeAll()` family of functions).

This hid the issues setting up WebKitTestServer, related to bug220366 and bug220922 (reverted the original Soup commits).

Patch almost ready.
Comment 1 Lauro Moura 2021-01-25 20:18:57 PST
Created attachment 418366 [details]
Comment 2 Carlos Garcia Campos 2021-01-26 00:42:13 PST
Comment on attachment 418366 [details]

View in context: https://bugs.webkit.org/attachment.cgi?id=418366&action=review

Good catch, thanks!

> Tools/glib/glib_test_runner.py:272
> +        if (not self._results) and p.returncode != 0:

Do we need the parentheses here?

> Tools/glib/glib_test_runner.py:278
> +        elif p.returncode != 0 and not need_restart:  # Try to read errors from afterAll

Don't use else after a return
Comment 3 Lauro Moura 2021-01-26 09:17:37 PST
Created attachment 418430 [details]
Patch for landing.
Comment 4 EWS 2021-01-26 13:33:38 PST
Committed r271902: <https://trac.webkit.org/changeset/271902>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 418430 [details].
Comment 5 Radar WebKit Bug Importer 2021-01-26 13:34:13 PST