com php-src: Fix the lchwon error test for Travis CI.: ext/standard/tests/file/lchown_error.phpt
| From: | Joe Watkins | Date: | Sat, 12 Nov 2016 00:17:07 +0000 |
| Subject: | com php-src: Fix the lchwon error test for Travis CI.: ext/standard/tests/file/lchown_error.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95712@lists.php.net to get a copy of this message | ||
Commit: 3b830cfb5c87974eb48596cdc4e4bf07cab89acc
Author: Mitch Hagstrand <mhagstrand@gmail.com> Fri, 11 Nov 2016 15:40:30 -0800
Parents: 0d253769001a623cfbdcea317c60b3e0cabf4c16
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3b830cfb5c87974eb48596cdc4e4bf07cab89acc
Log:
Fix the lchwon error test for Travis CI.
The E_WARNING message from the PHP function lchown is passed
from the system function lchown. The error message returned
from lchown can be filesystem dependent.
https://github.com/php/php-src/blob/6053987bc27e8dede37f437193a5cad448f99bce/ext/standard/filestat.c#L406
Changed paths:
M ext/standard/tests/file/lchown_error.phpt
Diff:
diff --git a/ext/standard/tests/file/lchown_error.phpt b/ext/standard/tests/file/lchown_error.phpt
index bacbd93..8632495 100644
--- a/ext/standard/tests/file/lchown_error.phpt
+++ b/ext/standard/tests/file/lchown_error.phpt
@@ -73,6 +73,6 @@ bool(true)
Warning: lchown() expects parameter 1 to be a valid path, array given in %s on line %d
bool(true)
-Warning: lchown(): Operation not permitted in %s on line %d
+Warning: lchown(): %r(Operation not permitted|Invalid argument)%r in %s on line %d
bool(false)
===DONE===