[jflex] Increase test stack size to 1M

Mikolaj Izdebski mizdebsk at fedoraproject.org
Mon Jul 14 18:37:45 UTC 2014


commit 5525440d833d3b13941ad70627276b1158e04e63
Author: Mikolaj Izdebski <mizdebsk at redhat.com>
Date:   Mon Jul 14 20:33:36 2014 +0200

    Increase test stack size to 1M

 jflex.spec |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/jflex.spec b/jflex.spec
index dc6213a..b62b035 100644
--- a/jflex.spec
+++ b/jflex.spec
@@ -48,6 +48,10 @@ This package provides %{summary}.
 %pom_remove_plugin :maven-antrun-plugin
 %pom_remove_plugin :jflex-maven-plugin
 
+# Tests fail with 320k stacks (default on i686), so lets increase
+# stack to 1M.  See rhbz#1119308
+%pom_xpath_inject "pom:plugin[pom:artifactId='maven-surefire-plugin']/pom:configuration" "<argLine>-Xss1024k</argLine>"
+
 %build
 java -jar /usr/share/java/java_cup.jar -parser LexParse -interface -destdir src/main/java src/main/cup/LexParse.cup
 jflex -d src/main/java/jflex --skel src/main/jflex/skeleton.nested src/main/jflex/LexScan.flex


More information about the scm-commits mailing list