summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell
diff options
context:
space:
mode:
authorkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-05 22:43:53 +0000
committerkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-05 22:43:53 +0000
commit0cf3076cc1492cd7d0dab96882e1e619298983da (patch)
tree77fde1b1827f8c07d6676d1c908bbab0fde39146 /webkit/tools/test_shell
parent9fa8346c82785a5adbb8ddea867b35e7f6057bea (diff)
downloadchromium_src-0cf3076cc1492cd7d0dab96882e1e619298983da.zip
chromium_src-0cf3076cc1492cd7d0dab96882e1e619298983da.tar.gz
chromium_src-0cf3076cc1492cd7d0dab96882e1e619298983da.tar.bz2
Report timeout before sending EOF to mark the correct test as timed out.
BUG=7428 Review URL: http://codereview.chromium.org/20102 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9266 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell')
-rw-r--r--webkit/tools/test_shell/layout_test_controller.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/tools/test_shell/layout_test_controller.cc b/webkit/tools/test_shell/layout_test_controller.cc
index 9bbd417..47700e2 100644
--- a/webkit/tools/test_shell/layout_test_controller.cc
+++ b/webkit/tools/test_shell/layout_test_controller.cc
@@ -30,9 +30,9 @@ namespace {
// Stops the test from running and prints a brief warning to stdout. Called
// when the timer for loading a layout test expires.
VOID CALLBACK TestTimeout(HWND hwnd, UINT msg, UINT_PTR timer_id, DWORD ms) {
+ puts("#TEST_TIMED_OUT\n");
reinterpret_cast<TestShell*>(timer_id)->TestFinished();
// Print a warning to be caught by the layout-test script.
- puts("#TEST_TIMED_OUT\n");
}
}