diff options
author | Dominik Stadler <centic@apache.org> | 2021-01-06 09:10:21 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2021-01-06 09:10:21 +0000 |
commit | 47c5e9b08dea1a632de9b00b73494ee9e0d60832 (patch) | |
tree | 26177fc598a1c625400450f0e86ce46337e9551b /src/integrationtest | |
parent | 42ca20ad591c285b82b9412b9b2fd3eac7c9b2d8 (diff) | |
download | poi-47c5e9b08dea1a632de9b00b73494ee9e0d60832.tar.gz poi-47c5e9b08dea1a632de9b00b73494ee9e0d60832.zip |
Adjust assumption for one specific font-related exception on Windows
Otherwise it triggers too much and hides actual regression bugs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885187 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/integrationtest')
-rw-r--r-- | src/integrationtest/org/apache/poi/stress/SlideShowHandler.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/integrationtest/org/apache/poi/stress/SlideShowHandler.java b/src/integrationtest/org/apache/poi/stress/SlideShowHandler.java index 2fd0965157..315b47eac6 100644 --- a/src/integrationtest/org/apache/poi/stress/SlideShowHandler.java +++ b/src/integrationtest/org/apache/poi/stress/SlideShowHandler.java @@ -155,11 +155,13 @@ public abstract class SlideShowHandler extends POIFSFileHandler { // We saw exceptions with JDK 8 on Windows in the Jenkins CI which // seem to only be triggered by some font (maybe Calibri?!) // We cannot avoid this, so let's try to not make the tests fail in this case - Assumptions.assumeTrue( + Assumptions.assumeFalse( e.getMessage().equals("-1") && ExceptionUtils.readStackTrace(e).contains("ExtendedTextSourceLabel.getJustificationInfos"), - "JDK sometimes fails at this point on some fonts on Windows machines, but we" + - "should not fail the build because of this"); + "JDK sometimes fails at this point on some fonts on Windows machines, but we " + + "should not fail the build because of this: " + ExceptionUtils.readStackTrace(e)); + + throw e; } graphics.dispose(); |