From f912005ef34c8adfc2b0827f2d1e353e1508d3d0 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sat, 10 May 2014 22:02:59 -0700 Subject: [PATCH] test: Give a test a bigger stack for pretty printing --- src/compiletest/runtest.rs | 2 +- src/test/run-pass/super-fast-paren-parsing.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs index d7fa4f209d4d..29f7a771e86f 100644 --- a/src/compiletest/runtest.rs +++ b/src/compiletest/runtest.rs @@ -217,7 +217,7 @@ fn run_pretty_test(config: &Config, props: &TestProps, testfile: &Path) { pretty_type: &str) -> ProcRes { compose_and_run(config, testfile, make_pp_args(config, props, testfile, pretty_type.to_owned()), - Vec::new(), config.compile_lib_path, Some(src)) + props.exec_env.clone(), config.compile_lib_path, Some(src)) } fn make_pp_args(config: &Config, diff --git a/src/test/run-pass/super-fast-paren-parsing.rs b/src/test/run-pass/super-fast-paren-parsing.rs index 759b066c8dbf..1204efc29ebd 100644 --- a/src/test/run-pass/super-fast-paren-parsing.rs +++ b/src/test/run-pass/super-fast-paren-parsing.rs @@ -8,6 +8,10 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// exec-env:RUST_MIN_STACK=8000000 +// +// Big stack is needed for pretty printing, a little sad... + static a: int = ((((((((((((((((((((((((((((((((((((((((((((((((((( (((((((((((((((((((((((((((((((((((((((((((((((((((