Bug 134580 - [GTK] API test TestWebKitAPI/WebKit2Gtk/TestCookieManager is flaky
Summary: [GTK] API test TestWebKitAPI/WebKit2Gtk/TestCookieManager is flaky
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-07-02 18:39 PDT by Carlos Alberto Lopez Perez
Modified: 2023-08-24 08:38 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Alberto Lopez Perez 2014-07-02 18:39:21 PDT
The API test fails sometimes with the following failure:

WebKit $ Tools/Scripts/run-gtk-tests --release WebKitBuild/Release/bin/TestWebKitAPI/WebKit2Gtk/TestCookieManager 
TEST: WebKitBuild/Release/bin/TestWebKitAPI/WebKit2Gtk/TestCookieManager... (pid=29329)
**
ERROR:../../Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestCookieManager.cpp:289:void testCookieManagerPersistentStorage(CookieManagerTest*, gconstpointer): assertion failed (g_strv_length(domains) == 2): (0 == 2)
GTester: last random seed: R02S36a48b6bc39b0616bf610e899d725016
(pid=29400)
FAIL: WebKitBuild/Release/bin/TestWebKitAPI/WebKit2Gtk/TestCookieManager
Tests failed (1): WebKitBuild/Release/bin/TestWebKitAPI/WebKit2Gtk/TestCookieManager


The following bash command would run the test until it fails (should happen in less than 100 iterations):

WebKit $ while true; do Tools/Scripts/run-gtk-tests --release WebKitBuild/Release/bin/TestWebKitAPI/WebKit2Gtk/TestCookieManager || break; done
Comment 1 Carlos Alberto Lopez Perez 2014-07-02 19:34:08 PDT
I have skipped the test on https://bugs.webkit.org/show_bug.cgi?id=134583
Comment 2 Vitaly Dyackhov 2023-08-24 01:46:34 PDT
Seems to be fixed. See https://commits.webkit.org/267191@main
Comment 3 Radar WebKit Bug Importer 2023-08-24 08:38:15 PDT
<rdar://problem/114384324>