diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-05-26 18:18:14 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-05-26 18:18:14 +0000 |
commit | de58df089f99351c931b79c2a631a145d1e9fc6e (patch) | |
tree | 12a5c2d2ed1bd026da33fbc3156e388a5e732154 | |
parent | 07e4ab6946c8c7a759e72b0a79bd3e71c84ff715 (diff) | |
download | php-git-de58df089f99351c931b79c2a631a145d1e9fc6e.tar.gz |
Prevent test failure when fi_FI locale is not available.
-rw-r--r-- | ext/gettext/tests/gettext_basic.phpt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/gettext/tests/gettext_basic.phpt b/ext/gettext/tests/gettext_basic.phpt index 734cc814ad..441ca57a83 100644 --- a/ext/gettext/tests/gettext_basic.phpt +++ b/ext/gettext/tests/gettext_basic.phpt @@ -1,7 +1,14 @@ --TEST-- Gettext basic test --SKIPIF-- -<?php if (!extension_loaded("gettext")) print "skip"; ?> +<?php + if (!extension_loaded("gettext")) { + die("skip\n"); + } + if (!setlocale(LC_ALL, 'fi_FI')) { + die("skip fi_FI locale not supported."); + } +?> --FILE-- <?php // $Id$ |