aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/tests.bzl
diff options
context:
space:
mode:
authorThomas Wolf <thomas.wolf@paranor.ch>2018-05-28 11:35:20 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2018-06-01 01:47:58 +0200
commit621880bc9cafe547596bbd3c863a3a08780b13e4 (patch)
tree0e626f97654ca1877542f5291aa5b943771f7b24 /org.eclipse.jgit.test/tests.bzl
parentcc0ba3b82dee084abd0bb59fce56ae28f8420b90 (diff)
downloadjgit-621880bc9cafe547596bbd3c863a3a08780b13e4.tar.gz
jgit-621880bc9cafe547596bbd3c863a3a08780b13e4.zip
Test commit with huge commit message
Tests that even a commit with a huge message can be committed and read if the WindowCache's streamFileThreshold is configured large enough. Bug: 535092 Change-Id: Id8090c608625010caf11dff7971b47882b5fd20f Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit.test/tests.bzl')
-rw-r--r--org.eclipse.jgit.test/tests.bzl6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.jgit.test/tests.bzl b/org.eclipse.jgit.test/tests.bzl
index b1b7b7a9de..64dfe071cf 100644
--- a/org.eclipse.jgit.test/tests.bzl
+++ b/org.eclipse.jgit.test/tests.bzl
@@ -42,6 +42,10 @@ def tests(tests):
'//lib:jsch',
]
+ heap_size = "-Xmx256m"
+ if src.endswith("HugeCommitMessageTest.java"):
+ heap_size = "-Xmx512m"
+
junit_tests(
name = name,
tags = labels,
@@ -57,5 +61,5 @@ def tests(tests):
'//org.eclipse.jgit.lfs:jgit-lfs',
],
flaky = flaky,
- jvm_flags = ["-Xmx256m", "-Dfile.encoding=UTF-8"],
+ jvm_flags = [heap_size, "-Dfile.encoding=UTF-8"],
)