From: Dominik Stadler Date: Tue, 17 May 2016 08:44:16 +0000 (+0000) Subject: Exclude newly added corrupt file X-Git-Tag: REL_3_15_BETA2~243 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e692fd74851f79dc27ea20dbd4efa602cb0a4951;p=poi.git Exclude newly added corrupt file git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1744211 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/integrationtest/org/apache/poi/TestAllFiles.java b/src/integrationtest/org/apache/poi/TestAllFiles.java index 3012ce1ebe..8b4173267b 100644 --- a/src/integrationtest/org/apache/poi/TestAllFiles.java +++ b/src/integrationtest/org/apache/poi/TestAllFiles.java @@ -239,6 +239,7 @@ public class TestAllFiles { EXPECTED_FAILURES.add("spreadsheet/43493.xls"); EXPECTED_FAILURES.add("spreadsheet/46904.xls"); EXPECTED_FAILURES.add("document/Bug50955.doc"); + EXPECTED_FAILURES.add("slideshow/bug54570.pptx"); EXPECTED_FAILURES.add("slideshow/PPT95.ppt"); EXPECTED_FAILURES.add("openxml4j/OPCCompliance_CoreProperties_DCTermsNamespaceLimitedUseFAIL.docx"); EXPECTED_FAILURES.add("openxml4j/OPCCompliance_CoreProperties_DoNotUseCompatibilityMarkupFAIL.docx"); @@ -347,7 +348,8 @@ public class TestAllFiles { handler.handleExtracting(inputFile); // special cases where docx-handling breaks, but OPCPackage handling works - boolean ignoredOPC = (file.endsWith(".docx") || file.endsWith(".xlsx") || file.endsWith(".xlsb")) && + boolean ignoredOPC = (file.endsWith(".docx") || file.endsWith(".xlsx") || + file.endsWith(".xlsb") || file.endsWith(".pptx")) && handler instanceof OPCFileHandler; assertFalse("Expected to fail for file " + file + " and handler " + handler + ", but did not fail!",