Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package icu for openSUSE:Factory checked in 
at 2021-04-08 21:01:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/icu (Old)
 and      /work/SRC/openSUSE:Factory/.icu.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "icu"

Thu Apr  8 21:01:49 2021 rev:79 rq:882713 version:68.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/icu/icu.changes  2021-03-17 20:13:37.134797890 
+0100
+++ /work/SRC/openSUSE:Factory/.icu.new.2401/icu.changes        2021-04-08 
21:02:04.537894812 +0200
@@ -1,0 +2,6 @@
+Wed Mar 31 16:19:02 UTC 2021 - Guillaume GARDET <guillaume.gar...@opensuse.org>
+
+- Add icu-drop-testTemperature.patch to fix boo#1182645
+  The test has been dropped in master branch
+
+-------------------------------------------------------------------

New:
----
  icu-drop-testTemperature.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ icu.spec ++++++
--- /var/tmp/diff_new_pack.X4Kt0M/_old  2021-04-08 21:02:05.369895710 +0200
+++ /var/tmp/diff_new_pack.X4Kt0M/_new  2021-04-08 21:02:05.381895723 +0200
@@ -45,6 +45,8 @@
 Patch7:         icu-avoid-x87-excess-precision.diff
 Patch8:         locale.diff
 Patch9:         icu-1618.patch
+# boo#1182645
+Patch10:        icu-drop-testTemperature.patch
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  pkg-config
@@ -132,8 +134,11 @@
 This package contains the HTML documentation.
 
 %prep
-%setup -qn icu
-%autopatch -p1
+%autosetup -p1 -n icu
+%ifnarch aarch64 ppc64 ppc64le
+%patch -P 10 -R -p1
+%endif
+
 # docs are special
 mkdir html
 pushd html/

++++++ icu-drop-testTemperature.patch ++++++
--- icu/source/test/intltest/units_test.cpp.orig        2021-03-31 
18:16:45.625488752 +0200
+++ icu/source/test/intltest/units_test.cpp     2021-03-31 18:26:44.059315511 
+0200
@@ -50,7 +50,6 @@ class UnitsTest : public IntlTest {
     void testPreferences();
     void testSiPrefixes();
     void testMass();
-    void testTemperature();
     void testArea();
 };
 
@@ -69,7 +68,6 @@ void UnitsTest::runIndexedTest(int32_t i
     TESTCASE_AUTO(testPreferences);
     TESTCASE_AUTO(testSiPrefixes);
     TESTCASE_AUTO(testMass);
-    TESTCASE_AUTO(testTemperature);
     TESTCASE_AUTO(testArea);
     TESTCASE_AUTO_END;
 }
@@ -224,40 +222,6 @@ void UnitsTest::testMass() {
     }
 }
 
-void UnitsTest::testTemperature() {
-    IcuTestErrorCode status(*this, "Units testTemperature");
-    // Test Cases
-    struct TestCase {
-        const char *source;
-        const char *target;
-        const double inputValue;
-        const double expectedValue;
-    } testCases[]{
-        {"celsius", "fahrenheit", 0.0, 32.0},   //
-        {"celsius", "fahrenheit", 10.0, 50.0},  //
-        {"fahrenheit", "celsius", 32.0, 0.0},   //
-        {"fahrenheit", "celsius", 89.6, 32},    //
-        {"kelvin", "fahrenheit", 0.0, -459.67}, //
-        {"kelvin", "fahrenheit", 300, 80.33},   //
-        {"kelvin", "celsius", 0.0, -273.15},    //
-        {"kelvin", "celsius", 300.0, 26.85}     //
-    };
-
-    for (const auto &testCase : testCases) {
-        UErrorCode status = U_ZERO_ERROR;
-
-        MeasureUnitImpl source = 
MeasureUnitImpl::forIdentifier(testCase.source, status);
-        MeasureUnitImpl target = 
MeasureUnitImpl::forIdentifier(testCase.target, status);
-
-        ConversionRates conversionRates(status);
-        UnitConverter converter(source, target, conversionRates, status);
-
-        assertEqualsNear(UnicodeString("testTemperature: ") + testCase.source 
+ " to " + testCase.target,
-                         testCase.expectedValue, 
converter.convert(testCase.inputValue),
-                         0.0001 * uprv_fabs(testCase.expectedValue));
-    }
-}
-
 void UnitsTest::testArea() {
     IcuTestErrorCode status(*this, "Units Area");
 

Reply via email to