From 0786a39b26322e905004ba62be497efd1429e351 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Fri, 30 Sep 2016 14:35:11 +0200 Subject: [PATCH] drop faulty test --- ...rop-test-that-violates-Unicode-tr-35.patch | 36 +++++++++++++++++++ libetonyek.spec | 1 + 2 files changed, 37 insertions(+) create mode 100644 0001-drop-test-that-violates-Unicode-tr-35.patch diff --git a/0001-drop-test-that-violates-Unicode-tr-35.patch b/0001-drop-test-that-violates-Unicode-tr-35.patch new file mode 100644 index 0000000..f21035f --- /dev/null +++ b/0001-drop-test-that-violates-Unicode-tr-35.patch @@ -0,0 +1,36 @@ +From 1a20d8ece2ea3e8aa1d319cd88e8a6aa637982f2 Mon Sep 17 00:00:00 2001 +From: David Tardon +Date: Fri, 30 Sep 2016 09:57:15 +0200 +Subject: [PATCH] drop test that violates Unicode tr#35 + +(and therefore fails with latest liblangtag) + +Change-Id: I0e06c6c4e8bcf999cf5559d6287e77ae97e555d8 +--- + src/test/IWORKLanguageManagerTest.cpp | 10 ---------- + 1 file changed, 10 deletions(-) + +diff --git a/src/test/IWORKLanguageManagerTest.cpp b/src/test/IWORKLanguageManagerTest.cpp +index 8fca0a6..e663bd2 100644 +--- a/src/test/IWORKLanguageManagerTest.cpp ++++ b/src/test/IWORKLanguageManagerTest.cpp +@@ -104,16 +104,6 @@ void IWORKLanguageManagerTest::testTagToProps() + } + + { +- const string tag(mgr.addTag("ccc")); +- CPPUNIT_ASSERT(!tag.empty()); +- RVNGPropertyList props; +- mgr.writeProperties(tag, props); +- assertProperty("unknown lang", props, "fo:language", "ccc"); +- CPPUNIT_ASSERT(!props["fo:country"]); +- CPPUNIT_ASSERT(!props["fo:script"]); +- } +- +- { + // invalid tag + const string tag(mgr.addTag("13c")); + CPPUNIT_ASSERT(tag.empty()); +-- +2.9.3 + diff --git a/libetonyek.spec b/libetonyek.spec index 5d6b73b..0b120b6 100644 --- a/libetonyek.spec +++ b/libetonyek.spec @@ -30,6 +30,7 @@ BuildRequires: pkgconfig(zlib) Patch0: 0001-Allow-building-with-mdds-1.2.patch Patch1: 0001-make-the-mdds-test-forward-compatible.patch +Patch2: 0001-drop-test-that-violates-Unicode-tr-35.patch %description %{name} is library for import of documents from Apple iWork applications