aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2021-07-25 22:13:02 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2021-07-25 23:14:47 +0200
commit94ec198506c11d1151bccfe5d51f44d562e9b5d8 (patch)
treeba44ca798c72ff994854f2e4f0c7aff2d56d3a6b
parentf91fceb920cc1c191c86326c21de046937184969 (diff)
downloadguix-94ec198506c11d1151bccfe5d51f44d562e9b5d8.tar.gz
guix-94ec198506c11d1151bccfe5d51f44d562e9b5d8.zip
gnu: java-commons-codec: Fix build on non-huge-memory machines.
* gnu/packages/java.scm (java-commons-codec)[arguments]: Add a new 'skip-ravenous-test phase.
-rw-r--r--gnu/packages/java.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 2c4c3451ad..c75adcaf0e 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -7974,6 +7974,14 @@ This is a part of the Apache Commons Project.")
(lambda _
(copy-recursively "src/test/resources"
"build/test-classes")))
+ (add-before 'check 'skip-ravenous-test
+ (lambda _
+ ;; This test admits to being "memory hungry", but reliably fails
+ ;; even on a machine that should have plenty (12 GiB). Skip it.
+ (substitute*
+ "src/test/java/org/apache/commons/codec/binary/BaseNCodecTest.java"
+ (("\\bassertEnsureBufferSizeExpandsToMaxBufferSize.*;")
+ "return;"))))
(replace 'install (install-from-pom "pom.xml")))))
(native-inputs
`(("java-commons-lang3" ,java-commons-lang3)