Skip Menu |
 

This queue is for tickets about the Win32-GuiTest CPAN distribution.

Report information
The Basics
Id: 130239
Status: new
Priority: 0/
Queue: Win32-GuiTest

People
Owner: Nobody in particular
Requestors: petercj [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.63
Fixed in: (no value)



Subject: t\01_basic.t looks for "Notepad" anywhere in the class name, rather than matching only exactly qr/^Notepad$/
When running `gmake test`, or equivalently `prove t\01_basic.t`: C:\ALLEGR~1\.cpanm\work\1564606815.4616\Win32-GuiTest-1.63>prove -vl t\01_basic.t t\01_basic.t .. ok 1 - Check there are windows ok 2 - No duplicates ok 3 ok 4 - The desktop is not on the window list Bailout called. Further testing stopped: Please close existing Notepad windows before proceeding Bail out! Please close existing Notepad windows before proceeding FAILED--Further testing stopped: Please close existing Notepad windows before proceeding That test file has many instances of FindWindowLike() or WaitWindowLike() using "Notepad" as the wndclass (regexp for the window class name). However, there are other applications, other than MS notepad.exe which have a window class which matches, such as Notepad++. Changing all those FindWindowLike() and WaitWindowLike() calls to look for qr/^Notepad$/ instead of "Notepad" will get rid of the problem. Once again, I'll try to do a GitHub pull request in the near future.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.