com php-src: fixed test: ext/gettext/tests/bug66267.phpt
| From: | Anatol Belski | Date: | Fri, 21 Nov 2014 12:56:49 +0000 |
| Subject: | com php-src: fixed test: ext/gettext/tests/bug66267.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-83222@lists.php.net to get a copy of this message | ||
Commit: 59a9e7af215fb2411035f8d75386acbb38cd8e83
Author: Anatol Belski <ab@php.net> Fri, 21 Nov 2014 13:56:49 +0100
Parents: f2e33dc725ebc56a4871ae38e3a36ec96dba21ea
Branches: PHP-5.5 PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=59a9e7af215fb2411035f8d75386acbb38cd8e83
Log:
fixed test
on Linux gettext requires a locale to be installed on the system
Changed paths:
M ext/gettext/tests/bug66267.phpt
Diff:
diff --git a/ext/gettext/tests/bug66267.phpt b/ext/gettext/tests/bug66267.phpt
index c3aa423...26963ac 100644
--- a/ext/gettext/tests/bug66267.phpt
+++ b/ext/gettext/tests/bug66267.phpt
@@ -10,6 +10,14 @@ if (PHP_ZTS) {
should be even XFAIL till it's fixed there */
die("skip NTS only");
}
+if (substr(PHP_OS, 0, 3) != 'WIN') {
+ $loc = ["de_DE", "fr_FR", "en_US"];
+ foreach($loc as $l) {
+ if (!setlocale(LC_ALL, $l)) {
+ die("SKIP '$l' locale not supported.");
+ }
+ }
+}
?>
--FILE--
<?php