fix TestTwoDigitYear test

This commit is contained in:
Tigro 2014-06-17 16:49:17 +04:00
parent 23904473f8
commit ec21b26de7
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,12 @@
diff -urN icu.orig/source/test/intltest/dtfmttst.cpp icu/source/test/intltest/dtfmttst.cpp
--- icu.orig/source/test/intltest/dtfmttst.cpp 2014-06-17 16:47:24.189000000 +0400
+++ icu/source/test/intltest/dtfmttst.cpp 2014-06-17 16:48:02.083000000 +0400
@@ -1132,7 +1132,7 @@
return;
}
parse2DigitYear(fmt, "5/6/17", date(117, UCAL_JUNE, 5));
- parse2DigitYear(fmt, "4/6/34", date(34, UCAL_JUNE, 4));
+ parse2DigitYear(fmt, "4/6/34", date(134, UCAL_JUNE, 4));
}
// -------------------------------------

View file

@ -23,6 +23,7 @@ Url: http://www.icu-project.org/index.html
Source0: http://download.icu-project.org/files/icu4c/%{version}/%{name}4c-%{tarballver}-src.tgz
Source1: http://download.icu-project.org/files/icu4c/%{version}/%{name}4c-%{tarballver}-docs.zip
Patch0: %{name}4c-49.1-setBreakType.patch
Patch1: icu-53.1-TestTwoDigitYear-fix.patch
BuildRequires: doxygen
%description
@ -136,6 +137,7 @@ Development files and headers for the International Components for Unicode.
%prep
%setup -qn %{name}
%patch0 -p1 -b .setBreakType
%patch1 -p1 -b .testfix
mkdir -p docs
cd docs