Some tests may leave values behind for keys that can affect certain tests. There is a current bug in TestWebKitAPI WebKit1.SetAndUpdateCache* tests that is getting masked on some machines due to TestWebKitAPI WebKitCacheModelPreferenceKey == 1 on disk. In particular, at least these tests should be failing but they have been hiding recently on some machines: WebKit1.SetAndUpdateCacheModelInitialModel WebKit1.SetAndUpdateCacheModelPreferencesChangeMix WebKit1.SetAndUpdateCacheModelStandardPreferenceChange
<rdar://problem/14269434>
Created attachment 212230 [details] Patch
*** Bug 121722 has been marked as a duplicate of this bug. ***
Comment on attachment 212230 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=212230&action=review > Tools/TestWebKitAPI/Tests/mac/SetAndUpdateCacheModel.mm:41 > + [NSUserDefaults resetStandardUserDefaults]; I think that we should do this in mainMac.mm and manIOS.mm instead.
Also, I suspect that WebKit1.DidCreateJavaScriptContextBackForwardCacheTest has the same issue exactly.
Created attachment 212322 [details] Patch
Comment on attachment 212322 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=212322&action=review > Tools/ChangeLog:12 > + This patch fixes the tests by resetting the default, and using the proper I don't see this code in the patch. > Tools/ChangeLog:18 > + * WebKitTestRunner/mac/main.mm: > + (main): These changes don't look related to the fix.
ahahaha, fuck, I went over this too fast.
Created attachment 212324 [details] Patch
Comment on attachment 212324 [details] Patch r=me, however I think that this question still stands: > Also, I suspect that WebKit1.DidCreateJavaScriptContextBackForwardCacheTest has the same issue exactly. Please be careful landing this patch - if I'm right, then resetting preferences will make this test fail everywhere, and will make bots red.
Created attachment 212395 [details] Patch
Yes, this test needed the cache model to be a non-default one. Updated it and landed in <http://trac.webkit.org/r156299>.