Skip to content

Commit 9f26341

Browse files
committed
XFAIL two intl tests on FreeBSD
These tests fail with the following diff: ========DIFF======== date: Tuesday, July 7, 2009 8:41:13 PM EDT 002+ msgf: Wednesday, July 8, 2009 12:41:13 AM utc 002- msgf: Tuesday, July 7, 2009 8:41:13 PM usnyc ========DONE======== FAIL Bug #58756: w.r.t MessageFormatter [ext/intl/tests/bug58756_MessageFormatter_variant2.phpt] ========DIFF======== 001+ quinta-feira, 17 de maio de 2012 4:35:36 da tarde utc 001- quinta-feira, 17 de maio de 2012 5:35:36 da tarde ptlis ========DONE======== FAIL MessageFormat accepts IntlCalendar args [ext/intl/tests/msgfmt_format_intlcalendar_variant4.phpt] That is, it appears that the timezone does not get applied. I don't know why this happens, and don't want to spend more time trying to figure this out.
1 parent 0b47068 commit 9f26341

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

ext/intl/tests/bug58756_MessageFormatter_variant2.phpt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22
Bug #58756: w.r.t MessageFormatter
33
--SKIPIF--
44
<?php
5-
if (!extension_loaded('intl'))
5+
if (!extension_loaded('intl')) {
66
die('skip intl extension not enabled');
7-
if (version_compare(INTL_ICU_VERSION, '51.2') < 0)
7+
}
8+
if (version_compare(INTL_ICU_VERSION, '51.2') < 0) {
89
die('skip for ICU >= 51.2');
10+
}
11+
if (str_contains(PHP_OS, 'FreeBSD')) {
12+
die('xfail Fails on FreeBSD for unknown reason');
13+
}
914
?>
1015
--FILE--
1116
<?php

ext/intl/tests/msgfmt_format_intlcalendar_variant4.phpt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
MessageFormat accepts IntlCalendar args
33
--SKIPIF--
44
<?php
5-
if (!extension_loaded('intl')) die('skip intl extension not enabled'); ?>
6-
<?php if (version_compare(INTL_ICU_VERSION, '54.1') < 0) die('skip for ICU >= 54.1'); ?>
5+
if (!extension_loaded('intl')) die('skip intl extension not enabled');
6+
if (version_compare(INTL_ICU_VERSION, '54.1') < 0) die('skip for ICU >= 54.1');
7+
if (str_contains(PHP_OS, 'FreeBSD')) {
8+
die('xfail Fails on FreeBSD for unknown reason');
9+
}
10+
?>
711
--FILE--
812
<?php
913
ini_set("intl.error_level", E_WARNING);

0 commit comments

Comments
 (0)