Changeset 201263 in webkit
- Timestamp:
- May 22, 2016, 3:55:23 PM (9 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r201255 r201263 1 2016-05-22 Alexey Proskuryakov <ap@apple.com> 2 3 RELEASE_ASSERT(TestController::singleton().isCurrentInvocation(testInvocation)) is sometimes hit when running tests 4 https://bugs.webkit.org/show_bug.cgi?id=157977 5 rdar://problem/20874156 6 7 Reviewed by David Kilzer. 8 9 * WebKitTestRunner/TestInvocation.cpp: 10 (WTR::TestInvocation::invoke): Be more certain to launch a new process when there was 11 a timeout detected. If we don't, there is a chance that the process is not quite frozen, 12 and will still send a response that we no longer expect. 13 (WTR::TestInvocation::dumpWebProcessUnresponsiveness): Print timeout details to stderr 14 too, as stdout is not available, at least not in the case that I was observing. 15 1 16 2016-05-22 Brady Eidson <beidson@apple.com> 2 17 -
trunk/Tools/WebKitTestRunner/TestInvocation.cpp
r201081 r201263 173 173 if (m_webProcessIsUnresponsive) 174 174 dumpWebProcessUnresponsiveness(); 175 else if (!TestController::singleton().resetStateToConsistentValues(m_options)) { 176 // The process froze while loading about:blank, let's start a fresh one. 177 // It would be nice to report that the previous test froze after dumping results, but we have no way to do that. 178 TestController::singleton().terminateWebContentProcess(); 179 // Make sure that we have a process, as invoke() will need one to send bundle messages for the next test. 180 TestController::singleton().reattachPageToWebProcess(); 181 } 175 else if (TestController::singleton().resetStateToConsistentValues(m_options)) 176 return; 177 else 178 dumpWebProcessUnresponsiveness("TestController::resetStateToConsistentValues failed\n"); 179 180 // The process is unresponsive, so let's start a new one. 181 TestController::singleton().terminateWebContentProcess(); 182 // Make sure that we have a process, as invoke() will need one to send bundle messages for the next test. 183 TestController::singleton().reattachPageToWebProcess(); 182 184 } 183 185 … … 189 191 void TestInvocation::dumpWebProcessUnresponsiveness(const char* errorMessage) 190 192 { 193 fprintf(stderr, "%s", errorMessage); 191 194 char errorMessageToStderr[1024]; 192 195 #if PLATFORM(COCOA)
Note:
See TracChangeset
for help on using the changeset viewer.