Edit report at https://bugs.php.net/bug.php?id=65678&edit=1

 ID:                 65678
 Comment by:         pierre dot renaudet at gmail dot com
 Reported by:        pierre dot renaudet at gmail dot com
 Summary:            the test cli_process_title_windows will fails on
                     particular environnement
 Status:             Feedback
 Type:               Bug
 Package:            Testing related
 Operating System:   Windows Only
 PHP Version:        master-Git-2013-09-16 (Git)
 Block user comment: N
 Private report:     N

 New Comment:

I am not sure that I could do, so I have run script before and after patch with 
--show-diff

=== BEFORE PATCH ===

Release\php.exe -d open_basedir= -d output_buffering=0 run-tests.php 
sapi\cli\tests\cli_process_title_windows.phpt -p "Release\php.exe" --show-diff

=====================================================================
PHP         : Release\php.exe
PHP_SAPI    : cli
PHP_VERSION : 5.6.0-dev
ZEND_VERSION: 2.6.0-dev
PHP_OS      : WINNT - Windows NT PIERRE-W8 6.2 build 9200 (Windows 8 Business Ed
ition) i586
INI actual  : C:\Programmes\PHP\phpdev\vc11\x86\php-src
More .INIs  :
CWD         : C:\Programmes\PHP\phpdev\vc11\x86\php-src
Extra dirs  :
VALGRIND    : Not used
=====================================================================
Running selected tests.
TEST 1/1 [C:\Programmes\PHP\phpdev\vc11\x86\php-src\sapi\cli\tests\cli_process_t
itle_windows.phpt]
========DIFF========
001+ . : Impossible de charger le fichier
002+ 
C:\Users\%username%\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps
1,
003+ car l'exécution de scripts est désactivée sur ce système. Pour plus
004+ d'informations, consultez about_Execution_Policies à l'adresse
001- *** Testing setting the process title ***
002- Successfully set title
003- Successfully verified title using get-process
004- Successfully verified title using get
005+ http://go.microsoft.com/fwlink/?LinkID=135170.
006+ Au caractère Ligne:1 : 3
007+ + .
008+ 
'C:\Users\%username%\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.p
s1'
009+ +
010+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
011+     + CategoryInfo          : Erreur de sécurité : (:) [], 
PSSecurityExcept
ion
012+     + FullyQualifiedErrorId : UnauthorizedAccess
013+ *** Testing setting the process title ***
014+ Successfully set title
015+ Successfully verified title using get-process
016+ Successfully verified title using get
========DONE========
FAIL Check cli_process_title support in Windows [C:\Programmes\PHP\phpdev\vc11\x
86\php-src\sapi\cli\tests\cli_process_title_windows.phpt]
=====================================================================
Number of tests :    1                 1
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    1 (100.0%) (100.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :    0 (  0.0%) (  0.0%)
---------------------------------------------------------------------
Time taken      :    1 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Check cli_process_title support in Windows [C:\Programmes\PHP\phpdev\vc11\x86\ph
p-src\sapi\cli\tests\cli_process_title_windows.phpt]
=====================================================================

=== AFTER PATCH ===
Release\php.exe -d open_basedir= -d output_buffering=0 run-tests.php 
sapi\cli\tests\cli_process_title_windows.phpt -p "Release\php.exe" --show-diff

=====================================================================
PHP         : Release\php.exe
PHP_SAPI    : cli
PHP_VERSION : 5.6.0-dev
ZEND_VERSION: 2.6.0-dev
PHP_OS      : WINNT - Windows NT COMPUTERNAME 6.2 build 9200 (Windows 8 
Business 
Ed
ition) i586
INI actual  : C:\Programmes\PHP\phpdev\vc11\x86\php-src
More .INIs  :
CWD         : C:\Programmes\PHP\phpdev\vc11\x86\php-src
Extra dirs  :
VALGRIND    : Not used
=====================================================================
Running selected tests.
TEST 1/1 [C:\Programmes\PHP\phpdev\vc11\x86\php-src\sapi\cli\tests\cli_process_t
PASS Check cli_process_title support in Windows [C:\Programmes\PHP\phpdev\vc11\x
86\php-src\sapi\cli\tests\cli_process_title_windows.phpt]
=====================================================================
Number of tests :    1                 1
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    0 (  0.0%) (  0.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :    1 (100.0%) (100.0%)
---------------------------------------------------------------------
Time taken      :    0 seconds
=====================================================================


Previous Comments:
------------------------------------------------------------------------
[2013-09-16 19:11:13] a...@php.net

Before the patch is applied, could you please post the diff of the phpt?

Thanks

------------------------------------------------------------------------
[2013-09-16 09:48:04] pierre dot renaudet at gmail dot com

Description:
------------
The test : sapi/cli/tests/cli_process_title_windows.phpt

Will fail when user has a User script at startup of Powershell.
To correct this issue, we can use two parameters :
 "-ExecutionPolicy RemoteSigned" that Enable all script on computer (so User 
are 
enable
 "-NoProfile" I think it's a better solution that's correct the initial 
problem...

Second issue, the test for Windows 8 will fails if the test was run as 
administrator and on a non-English OS, because the String searched is 
English-OS 
only.
To correct this problem, search if the end of title process is ": Windows 
Powershell"



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=65678&edit=1

Reply via email to