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 textcpan> 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.