]> source.dussan.org Git - poi.git/commitdiff
List expected failures in stress.xls instead of fully excluding them
authorDominik Stadler <centic@apache.org>
Sun, 14 Jul 2024 11:26:38 +0000 (11:26 +0000)
committerDominik Stadler <centic@apache.org>
Sun, 14 Jul 2024 11:26:38 +0000 (11:26 +0000)
We list expected failures in stress.xls to verify that
the error message is correct and no unexpected exception
is introduced

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919212 13f79535-47bb-0310-9956-ffa450edef68

poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java
test-data/spreadsheet/stress.xls

index 2f8ba9aafa17807aafa6b9e6878dc02567535ca6..2767ca9f72382e566d06f6a7f2ff8375a6dff680 100644 (file)
@@ -97,11 +97,8 @@ public class TestAllFiles {
         "poifs/60320-protected.xlsx",
         "poifs/protected_sha512.xlsx",
 
-        // corrupt file
-        "document/unicode-path.docx",
-        "spreadsheet/duplicate-filename.xlsx",
-        "spreadsheet/duplicate-filename-case-insensitive.xlsx",
-        "document/clusterfuzz-testcase-minimized-POIXWPFFuzzer-5166796835258368.docx",
+        // NOTE: Expected failures should usually be added in file "stress.xls" instead
+        // of being listed here in order to also verify the expected exception details!
     };
 
     // cheap workaround of skipping the few problematic files
index f4d52ecf69409b8ebb777a11b272176c684ede3d..04046bd635862ed77db5acd57fe09fbd8a12826d 100644 (file)
Binary files a/test-data/spreadsheet/stress.xls and b/test-data/spreadsheet/stress.xls differ