Skip Menu |

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

Report information
The Basics
Id: 75338
Status: rejected
Priority: 0/
Queue: Win32-GuiTest

People
Owner: Nobody in particular
Requestors: willi.weikum [...] googlemail.com
Cc:
AdminCc:

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



Subject: Installation fail on Windows 7 x64
Date: Mon, 27 Feb 2012 11:26:52 +0100
To: bug-Win32-GuiTest [...] rt.cpan.org
From: Willi Weikum <willi.weikum [...] googlemail.com>
Installation of Win32::GuiTest fails on Windows 7 with strawberry 5.12 and 5.14. The module works but you need to force the installation with <force install Win32::GuiTest> as all tests fail. The problem comes from a kind how the tested application notepad and calc start. The start of the cmd.exe instance wich is in turn starts this applications fail ( Can't spawn "cmd.exe": No such file or directory at ... ). It looks like there is a problem with user account control as I can't run "cmd /c start calc" from a non-elevated cmd window but the same command line works fine from an elevated cmd window. Running cpan client with elevated privileges doen's work too. Show quoted text
cpan> install Win32::GuiTest
Running install for module 'Win32::GuiTest' Running make for K/KA/KARASIK/Win32-GuiTest-1.58.tar.gz Checksum for C:\strawberry\cpan\sources\authors\id\K\KA\KARASIK\Win32-GuiTest-1. 58.tar.gz ok Scanning cache C:\strawberry\cpan\build for sizes ............................................................................DONE CPAN.pm: Building K/KA/KARASIK/Win32-GuiTest-1.58.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Win32::GuiTest Writing MYMETA.yml and MYMETA.json cp lib/Win32/GuiTest/GuiTest.pc blib\lib\Win32\GuiTest\GuiTest.pc cp lib/Win32/GuiTest/Examples.pm blib\lib\Win32\GuiTest\Examples.pm cp lib/Win32/GuiTest.pm blib\lib\Win32\GuiTest.pm cp lib/Win32/GuiTest/Cmd.pm blib\lib\Win32\GuiTest\Cmd.pm C:\strawberry\perl\bin\perl.exe -IC:\strawberry\perl\lib -IC:\strawberry\perl\li b C:\strawberry\perl\lib\ExtUtils\xsubpp -typemap C:\strawberry\perl\lib\ExtUti ls\typemap -typemap perlobject.map -typemap typemap GuiTest.xs >xstmp.c && C:\st rawberry\perl\bin\perl.exe -MExtUtils::Command -e mv -- xstmp.c GuiTest.cpp gcc -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -D USE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasi ng -mms-bitfields -s -O2 -DVERSION=\"1.58\" -DXS_VERSION=\"1.58\" " -IC:\strawberry\perl\lib\CORE" GuiTest.cpp GuiTest.xs: In function 'int GetLVItemText(HWND__*, int, int, char*)': GuiTest.xs:346: warning: deprecated conversion from string constant to 'char*' GuiTest.xs: In function 'BOOL SelLVItem(HWND__*, int, BOOL)': GuiTest.xs:361: warning: deprecated conversion from string constant to 'char*' GuiTest.xs: In function 'BOOL SelLVItemText(HWND__*, char*, BOOL)': GuiTest.xs:371: warning: deprecated conversion from string constant to 'char*' GuiTest.xs: In function 'BOOL IsLVItemSel(HWND__*, char*)': GuiTest.xs:382: warning: deprecated conversion from string constant to 'char*' GuiTest.xs: In function 'BOOL SelTVItemPath(HWND__*, char*)': GuiTest.xs:393: warning: deprecated conversion from string constant to 'char*' GuiTest.xs: In function 'int GetTVSelPath(HWND__*, char*)': GuiTest.xs:403: warning: deprecated conversion from string constant to 'char*' GuiTest.xs: In function 'int GetTCItemText(HWND__*, int, char*)': GuiTest.xs:414: warning: deprecated conversion from string constant to 'char*' GuiTest.xs: In function 'BOOL SelTCItem(HWND__*, int)': GuiTest.xs:427: warning: deprecated conversion from string constant to 'char*' GuiTest.xs: In function 'BOOL SelTCItemText(HWND__*, char*)': GuiTest.xs:436: warning: deprecated conversion from string constant to 'char*' GuiTest.xs: In function 'BOOL IsTCItemSel(HWND__*, char*)': GuiTest.xs:447: warning: deprecated conversion from string constant to 'char*' GuiTest.xs: In function 'HWND__* PopupHandleGet(HWND__*, int, int, int)': GuiTest.xs:656: warning: deprecated conversion from string constant to 'char*' gcc -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -D USE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasi ng -mms-bitfields -s -O2 -DVERSION=\"1.58\" -DXS_VERSION=\"1.58\" " -IC:\strawberry\perl\lib\CORE" DibSect.cpp Running Mkbootstrap for Win32::GuiTest () C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 GuiTest.bs C:\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"Win32::GuiTest\", 'DLBASE' => 'GuiTest', 'DL_FUNCS ' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);" dlltool --def GuiTest.def --output-exp dll.exp g++ -o blib\arch\auto\Win32\GuiTest\GuiTest.dll -Wl,--base-file -Wl,dll.base -md ll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib" GuiTest.o DibSect. o C:\strawberry\perl\lib\CORE\libperl514.a -lmoldname -lkernel32 -luser32 -lgd i32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -lu uid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp dlltool --def GuiTest.def --base-file dll.base --output-exp dll.exp g++ -o blib\arch\auto\Win32\GuiTest\GuiTest.dll -mdll -s -L"C:\strawberry\perl\l ib\CORE" -L"C:\strawberry\c\lib" GuiTest.o DibSect.o C:\strawberry\perl\lib\CO RE\libperl514.a -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -la dvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -l version -lodbc32 -lodbccp32 -lcomctl32 dll.exp C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 755 blib\arch\au to\Win32\GuiTest\GuiTest.dll C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e cp -- GuiTest.bs blib\arc h\auto\Win32\GuiTest\GuiTest.bs C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 blib\arch\au to\Win32\GuiTest\GuiTest.bs KARASIK/Win32-GuiTest-1.58.tar.gz C:\strawberry\c\bin\dmake.EXE -- OK Running make test C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/01_basic.t ......... 3/? Can't spawn "cmd.exe": No such file or directory at t /01_basic.t line 43. t/01_basic.t ......... 5/? # Failed test 'The same from FindWindowLike' # at t/01_basic.t line 47. # got: '0' # expected: '1' # Failed test 'The two windows are the same' # at t/01_basic.t line 48. # got: '0' # expected: undef # Failed test 'Edit window found within notepad' # at t/01_basic.t line 53. # got: '29' # expected: '1' # Failed test 'we have Win32::GuiTest in the text' # at t/01_basic.t line 64. # '' # doesn't match '(?^:Win32::GuiTest)' # Failed test 'file is identical to what is in notepad' # at t/01_basic.t line 68. # got: '' # expected: '1' Can't spawn "cmd.exe": No such file or directory at t/01_basic.t line 71. t/01_basic.t ......... 12/? # Failed test 'same here' # at t/01_basic.t line 75. # got: '0' # expected: '1' # Failed test 'WindowIDs are identical' # at t/01_basic.t line 76. # got: '0' # expected: undef Use of uninitialized value in subroutine entry at t/01_basic.t line 78. t/01_basic.t ......... 15/? # Looks like you failed 7 tests of 24. t/01_basic.t ......... Dubious, test returned 7 (wstat 1792, 0x700) Failed 7/24 subtests t/02_calc.t .......... Can't spawn "cmd.exe": No such file or directory at t/02_ calc.t line 32. t/02_calc.t .......... 1/? # Failed test at t/02_calc.t line 37. Can't spawn "cmd.exe": No such file or directory at t/02_calc.t line 50. t/02_calc.t .......... 2/? # Failed test '1969 found' # at t/02_calc.t line 59. # Failed test 'hex found' # at t/02_calc.t line 66. Use of uninitialized value in subroutine entry at t/02_calc.t line 75. # Failed test at t/02_calc.t line 75. Use of uninitialized value in subroutine entry at t/02_calc.t line 82. # Failed test 'Oct window found' # at t/02_calc.t line 82. Use of uninitialized value in subroutine entry at t/02_calc.t line 88. # Failed test at t/02_calc.t line 88. # Looks like you failed 6 tests of 24. t/02_calc.t .......... Dubious, test returned 6 (wstat 1536, 0x600) Failed 6/24 subtests (less 15 skipped subtests: 3 okay) t/03_cpl.t ........... ok t/04_std.t ........... ok t/05_which.t ......... ok t/06_sendkeys.t ...... ok t/98_pod.t ........... skipped: Test::Pod 1.00 required for testing POD t/99_pod_coverage.t .. skipped: Test::Pod::Coverage required for testing POD cov erage Test Summary Report ------------------- t/01_basic.t (Wstat: 1792 Tests: 24 Failed: 7) Failed tests: 6-9, 11, 13-14 Non-zero exit status: 7 t/02_calc.t (Wstat: 1536 Tests: 24 Failed: 6) Failed tests: 1, 4-5, 8, 10, 12 Non-zero exit status: 6 Files=8, Tests=96, 51 wallclock secs ( 0.09 usr + 0.05 sys = 0.14 CPU) Result: FAIL Failed 2/8 test programs. 13/96 subtests failed. dmake.EXE: Error code 255, while making 'test_dynamic' KARASIK/Win32-GuiTest-1.58.tar.gz C:\strawberry\c\bin\dmake.EXE test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports KARASIK/Win32-GuiTest-1.58.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: KARASIK/Win32-GuiTest-1.58.tar.gz : make_test NO Show quoted text
cpan> This is a test message, but also a little demo for the
SendKeys function. 3, 2, 1, 0... Closing Notepad... Unknown shell command 'This'. Type ? for help.

Message body is not shown because it is too large.

test removed in 1.59
Subject: Re: [rt.cpan.org #75338] Resolved: Installation fail on Windows 7 x64
Date: Mon, 23 Apr 2012 14:53:19 +0200
To: bug-Win32-GuiTest [...] rt.cpan.org
From: Willi Weikum <willi.weikum [...] googlemail.com>
sorry for a delay, the installation still fails on win7 x64 (now with 32-bit perl). First log is without elevated privilege the second with. Notepad starts well, the test input is correct and Notepad also stops well in both cases: Show quoted text
cpan> install Win32::GuiTest
Running install for module 'Win32::GuiTest' Running make for K/KA/KARASIK/Win32-GuiTest-1.59.tar.gz Fetching with LWP: http://cpan.strawberryperl.com/authors/id/K/KA/KARASIK/Win32-GuiTest-1.59.tar.gz Checksum for C:\Dwimperl\cpan\sources\authors\id\K\KA\KARASIK\Win32-GuiTest-1.59 .tar.gz ok Scanning cache C:\Dwimperl\cpan\build for sizes ............................................................................DONE CPAN.pm: Building K/KA/KARASIK/Win32-GuiTest-1.59.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Win32::GuiTest Writing MYMETA.yml and MYMETA.json cp lib/Win32/GuiTest/GuiTest.pc blib\lib\Win32\GuiTest\GuiTest.pc cp lib/Win32/GuiTest/Examples.pm blib\lib\Win32\GuiTest\Examples.pm cp lib/Win32/GuiTest.pm blib\lib\Win32\GuiTest.pm cp lib/Win32/GuiTest/Cmd.pm blib\lib\Win32\GuiTest\Cmd.pm C:\Dwimperl\perl\bin\perl.exe -IC:\Dwimperl\perl\lib -IC:\Dwimperl\perl\lib C:\D wimperl\perl\lib\ExtUtils\xsubpp -typemap C:\Dwimperl\perl\lib\ExtUtils\typemap -typemap perlobject.map -typemap typemap GuiTest.xs >xstmp.c && C:\Dwimperl\per l\bin\perl.exe -MExtUtils::Command -e mv -- xstmp.c GuiTest.cpp gcc -c -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPER L_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -s -O 2 -DVERSION=\"1.59\" -DXS_VERSION=\"1.59\" "-IC:\Dwimperl\perl\lib\C ORE" GuiTest.cpp gcc -c -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPER L_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -s -O 2 -DVERSION=\"1.59\" -DXS_VERSION=\"1.59\" "-IC:\Dwimperl\perl\lib\C ORE" DibSect.cpp Running Mkbootstrap for Win32::GuiTest () C:\Dwimperl\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 GuiTest.bs C:\Dwimperl\perl\bin\perl.exe -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"Win32::GuiTest\", 'DLBASE' => 'GuiTest', 'DL_FUNCS ' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);" dlltool --def GuiTest.def --output-exp dll.exp g++ -o blib\arch\auto\Win32\GuiTest\GuiTest.dll -Wl,--base-file -Wl,dll.base -md ll -s -L"C:\Dwimperl\perl\lib\CORE" -L"C:\Dwimperl\c\lib" GuiTest.o DibSect.o C:\Dwimperl\perl\lib\CORE\libperl514.a -lmoldname -lkernel32 -luser32 -lgdi32 -l winspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -l ws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp dlltool --def GuiTest.def --base-file dll.base --output-exp dll.exp g++ -o blib\arch\auto\Win32\GuiTest\GuiTest.dll -mdll -s -L"C:\Dwimperl\perl\lib \CORE" -L"C:\Dwimperl\c\lib" GuiTest.o DibSect.o C:\Dwimperl\perl\lib\CORE\lib perl514.a -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi3 2 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversio n -lodbc32 -lodbccp32 -lcomctl32 dll.exp C:\Dwimperl\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 755 blib\arch\auto \Win32\GuiTest\GuiTest.dll C:\Dwimperl\perl\bin\perl.exe -MExtUtils::Command -e cp -- GuiTest.bs blib\arch\ auto\Win32\GuiTest\GuiTest.bs C:\Dwimperl\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 blib\arch\auto \Win32\GuiTest\GuiTest.bs KARASIK/Win32-GuiTest-1.59.tar.gz C:\Dwimperl\c\bin\dmake.EXE -- OK Running make test C:\Dwimperl\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'b lib\lib', 'blib\arch')" t/*.t t/01_basic.t ......... 3/? # Failed test 'Edit window found within notepad' # at t/01_basic.t line 53. # got: '0' # expected: '1' Use of uninitialized value in subroutine entry at t/01_basic.t line 56. t/01_basic.t ......... 9/? # Failed test 'we have Win32::GuiTest in the text' # at t/01_basic.t line 64. # '\' # doesn't match '(?^:Win32::GuiTest)' # Failed test 'file is identical to what is in notepad' # at t/01_basic.t line 68. # got: '' # expected: '1' t/01_basic.t ......... 15/? # Looks like you failed 3 tests of 24. t/01_basic.t ......... Dubious, test returned 3 (wstat 768, 0x300) Failed 3/24 subtests t/02_calc.t .......... skipped: this test is phased out t/03_cpl.t ........... ok t/04_std.t ........... ok t/05_which.t ......... ok t/06_sendkeys.t ...... ok t/98_pod.t ........... ok t/99_pod_coverage.t .. ok Test Summary Report ------------------- t/01_basic.t (Wstat: 768 Tests: 24 Failed: 3) Failed tests: 8-9, 11 Non-zero exit status: 3 Files=8, Tests=78, 8 wallclock secs ( 0.05 usr + 0.03 sys = 0.08 CPU) Result: FAIL Failed 1/8 test programs. 3/78 subtests failed. dmake.EXE: Error code 255, while making 'test_dynamic' KARASIK/Win32-GuiTest-1.59.tar.gz C:\Dwimperl\c\bin\dmake.EXE test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports KARASIK/Win32-GuiTest-1.59.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: KARASIK/Win32-GuiTest-1.59.tar.gz : make_test NO with elevated privilege: Show quoted text
cpan> install Win32::GuiTest
Running install for module 'Win32::GuiTest' Running make for K/KA/KARASIK/Win32-GuiTest-1.59.tar.gz Has already been unwrapped into directory C:\Dwimperl\cpan\build\Win32-GuiTest -1.59-ZSfeos Has already been made Running make test C:\Dwimperl\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'b lib\lib', 'blib\arch')" t/*.t t/01_basic.t ......... 3/? # Failed test 'Edit window found within notepad' # at t/01_basic.t line 53. # got: '0' # expected: '1' Use of uninitialized value in subroutine entry at t/01_basic.t line 56. # Failed test 'we have Win32::GuiTest in the text' # at t/01_basic.t line 64. # '\' # doesn't match '(?^:Win32::GuiTest)' # Failed test 'file is identical to what is in notepad' # at t/01_basic.t line 68. # got: '' # expected: '1' t/01_basic.t ......... 12/? t/01_basic.t ......... 15/? # Failed test 'No notepad open now' # at t/01_basic.t line 91. # got: '1' # expected: '0' # Failed test at t/01_basic.t line 127. # Structures begin differing at: # $got->[205] = '854732' # $expected->[205] = '8849692' # Looks like you failed 5 tests of 24. t/01_basic.t ......... Dubious, test returned 5 (wstat 1280, 0x500) Failed 5/24 subtests t/02_calc.t .......... skipped: this test is phased out t/03_cpl.t ........... ok t/04_std.t ........... ok t/05_which.t ......... ok t/06_sendkeys.t ...... ok t/98_pod.t ........... ok t/99_pod_coverage.t .. ok Test Summary Report ------------------- t/01_basic.t (Wstat: 1280 Tests: 24 Failed: 5) Failed tests: 8-9, 11, 15, 20 Non-zero exit status: 5 Files=8, Tests=78, 9 wallclock secs ( 0.09 usr + 0.02 sys = 0.11 CPU) Result: FAIL Failed 1/8 test programs. 5/78 subtests failed. dmake.EXE: Error code 255, while making 'test_dynamic' KARASIK/Win32-GuiTest-1.59.tar.gz C:\Dwimperl\c\bin\dmake.EXE test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports KARASIK/Win32-GuiTest-1.59.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: KARASIK/Win32-GuiTest-1.59.tar.gz : make_test NO Show quoted text
cpan>
Show quoted text
cpan>
On Wed, Mar 14, 2012 at 2:16 PM, KARASIK via RT < bug-Win32-GuiTest@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=75338 > > > According to our records, your request has been resolved. If you have any > further questions or concerns, please respond to this message. >

Message body is not shown because it is too large.

Can't reproduce, it's fine on my Windows 7 no matter what I do.
Subject: Re: [rt.cpan.org #75338] Installation fail on Windows 7 x64
Date: Tue, 24 Jul 2012 11:10:47 +0200
To: bug-Win32-GuiTest [...] rt.cpan.org
From: Willi Weikum <willi.weikum [...] googlemail.com>
On Mon, Jul 23, 2012 at 11:59 PM, KARASIK via RT <bug-Win32-GuiTest@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=75338 > > > Can't reproduce, it's fine on my Windows 7 no matter what I do.
Checked the 01_basic.t. As far I can see you are checking for specific windows inside of the notepad instance. This window may be absent in my installation as I have replaced the original windows notepad with more advanced Notepad2 http://www.flos-freeware.ch/ which will start using notepad.exe command but is a completely different program. Sorry I have missed to address this point before.
Would you possibly be able to produce a patch that works for your system (and hopefully doesn't break mine)? That'd be the most constructive way to fix the problem, I think.
I'll close the ticket because its title has nothing to do with interoperability problem with Notepad2. You're welcome to open another bug report with the appropiate title, but as I won't be installing notepad2, it won't have much chance to be fixed unless someone produces a patch.