From b5b9d4f59b9f8c1e2470c2044d30b315671961c2 Mon Sep 17 00:00:00 2001 From: "chase@chromium.org" Date: Tue, 24 Nov 2009 19:36:05 +0000 Subject: Sleep briefly before/after printing page cycler results. Speculative fix to address bad perf results for reference build. An error message that's being printed at the same time as the test results is believed to be causing the graphing code to incorrectly read those results. BUG=none TEST=sane linux morejs reference graph result Review URL: http://codereview.chromium.org/437024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32954 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/page_cycler/page_cycler_test.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome/test') diff --git a/chrome/test/page_cycler/page_cycler_test.cc b/chrome/test/page_cycler/page_cycler_test.cc index 8dcabfd..845391a 100644 --- a/chrome/test/page_cycler/page_cycler_test.cc +++ b/chrome/test/page_cycler/page_cycler_test.cc @@ -234,6 +234,8 @@ class PageCyclerTest : public UITest { RunPageCycler(name, &pages, &timings, use_http); if (timings.empty()) return; + // wait 2 seconds to allow automation messages to print + PlatformThread::Sleep(2000); size_t stop_size = base::GetSystemCommitCharge(); FilePath data_dir; @@ -248,6 +250,8 @@ class PageCyclerTest : public UITest { wprintf(L"\nPages: [%ls]\n", pages.c_str()); PrintResultList("times", "", trace_name, timings, "ms", true /* important */); + // wait 2 seconds to allow automation messages to print + PlatformThread::Sleep(2000); } void RunTest(const char* name, bool use_http) { -- cgit v1.1