DescriptionCatch ERROR_INVALID_WINDOW_HANDLE in the quit chrome script.
In the mini_installer test framework, the script quit_chrome.py quits Chrome by sending a WM_CLOSE message to each window of Chrome. Once we send the message to a window, it's possible that the handles to other windows may become invalid (see buildbot error message http://goo.gl/16VmkX). Fix this by catching ERROR_INVALID_WINDOW_HANDLE.
NOTRY=True
BUG=264859
TEST=
1) Uninstall Chrome (if it's installed.)
2) Build Chrome with Release mode and make sure that mini_installer.exe is created.
3) Go to src\chrome\test\mini_installer
4) Edit quit_chrome.py. Add line "hwnd = 12345" before the line "win32gui.PostMessage(hwnd, win32con.WM_CLOSE, 0, 0)". Add line "print 'ok'" after the line "raise". Then save.
5) Run "python test_installer.py config\config.config --build-dir=<build-dir> --target=Release" where <build-dir> is the path to main build directory (the parent of the Release directory). It should print "ok" repeatedly.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222098
Patch Set 1 #
Total comments: 3
Patch Set 2 : Address grt's comment. #Messages
Total messages: 8 (0 generated)
|