WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
220863
[GTK] run-gtk-tests: Crashing and non-existent tests should not count as a pass
https://bugs.webkit.org/show_bug.cgi?id=220863
Summary
[GTK] run-gtk-tests: Crashing and non-existent tests should not count as a pass
Alicia Boya García
Reported
2021-01-22 08:59:28 PST
The current implementation doesn't account for test binaries that have not emitted any subtests. This is the case when a test binary doesn't exist or it crashes. Also, in the latter case, the stderr of the crashed processes was not being outputted to the user, masking a crashing test binary as a passing test. This patch fixes both issues: It adds several warning prints when binaries can't be run or fail to add any subtest, emitting the stderr generated by the failing or crashing binary.
Attachments
Patch
(3.35 KB, patch)
2021-01-22 09:00 PST
,
Alicia Boya García
no flags
Details
Formatted Diff
Diff
Patch
(3.60 KB, patch)
2021-01-26 08:01 PST
,
Alicia Boya García
no flags
Details
Formatted Diff
Diff
Patch
(3.50 KB, patch)
2021-01-27 06:27 PST
,
Alicia Boya García
no flags
Details
Formatted Diff
Diff
Patch
(3.50 KB, patch)
2021-01-27 08:46 PST
,
Alicia Boya García
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Alicia Boya García
Comment 1
2021-01-22 09:00:22 PST
Created
attachment 418152
[details]
Patch
Alicia Boya García
Comment 2
2021-01-26 08:01:32 PST
Created
attachment 418421
[details]
Patch
Alicia Boya García
Comment 3
2021-01-26 08:06:02 PST
Uploaded an updated version that marks these tests as CRASH. I expect the EWS to fail on the test suites that are currently crashing.
Alicia Boya García
Comment 4
2021-01-27 06:03:14 PST
(In reply to Alicia Boya García from
comment #3
)
> Uploaded an updated version that marks these tests as CRASH. I expect the > EWS to fail on the test suites that are currently crashing.
Well, EWS didn't fail because the crashes have been fixed in the meantime. Now the previously crashing test suites are reporting subtests again. TEST: /app/webkit/Tools/glib/../../WebKitBuild/Release/bin/TestWebKitAPI/WebKit2Gtk/TestCookieManager... /webkit/WebKitCookieManager/accept-policy: PASS TEST: /app/webkit/Tools/glib/../../WebKitBuild/Release/bin/TestWebKitAPI/WebKit2Gtk/TestBackForwardList... /webkit/BackForwardList/navigation: PASS TEST: /app/webkit/Tools/glib/../../WebKitBuild/Release/bin/TestWebKitAPI/WebKit2Gtk/TestLoaderClient... /webkit/WebKitWebView/loading-status: PASS ... and so on.
Alicia Boya García
Comment 5
2021-01-27 06:27:04 PST
Created
attachment 418538
[details]
Patch
Alicia Boya García
Comment 6
2021-01-27 06:27:38 PST
Reuploaded removing the ChangeLog line about changing expectations since it's no longer necessary.
Michael Catanzaro
Comment 7
2021-01-27 06:49:42 PST
Remember to CC
bugs-noreply@webkitgtk.org
if you're not using the GTK or WPE component, so it doesn't get missed!
Michael Catanzaro
Comment 8
2021-01-27 06:50:29 PST
Comment on
attachment 418538
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=418538&action=review
> Tools/glib/api_test_runner.py:308 > + # No subtests where emitted, either the test binary didn't exist, or we don't know how to run it, or it crashed.
were
Alicia Boya García
Comment 9
2021-01-27 08:46:57 PST
Created
attachment 418550
[details]
Patch
EWS
Comment 10
2021-01-27 09:14:20 PST
Committed
r271955
: <
https://trac.webkit.org/changeset/271955
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 418550
[details]
.
Radar WebKit Bug Importer
Comment 11
2021-01-27 09:17:59 PST
<
rdar://problem/73664773
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug