Bug 134580

Summary: [GTK] API test TestWebKitAPI/WebKit2Gtk/TestCookieManager is flaky
Product: WebKit Reporter: Carlos Alberto Lopez Perez <clopez>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, cgarcia, mcatanzaro, vitaly, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

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>