From 1344d99bb71d171ad16d445936b6976b6c3b8962 Mon Sep 17 00:00:00 2001 From: Scott Schurr Date: Fri, 19 Jan 2018 11:25:39 -0800 Subject: [PATCH] Force Windows stack size for json_value::test_nest_limits --- appveyor.yml | 4 ++-- src/test/json/json_value_test.cpp | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 0ee42c68764..d5eef14394f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,7 +4,7 @@ environment: # We bundle up protoc.exe and only the parts of boost and openssl we need so # that it's a small download. We also use appveyor's free cache, avoiding fees - # downloading from S3 each time. + # downloading from S3 each time. # TODO: script to create this package. RIPPLED_DEPS_PATH: rippled_deps17.01 RIPPLED_DEPS_URL: https://ripple.github.io/Downloads/appveyor/%RIPPLED_DEPS_PATH%.zip @@ -127,7 +127,7 @@ test_script: - ps: | & { # Run the rippled unit tests - & $exe --unittest --quiet --unittest-log + & $exe --unittest --unittest-log # https://connect.microsoft.com/PowerShell/feedback/details/751703/option-to-stop-script-if-command-line-exe-fails if ($LastExitCode -ne 0) { throw "Unit tests failed" } } diff --git a/src/test/json/json_value_test.cpp b/src/test/json/json_value_test.cpp index c5e70f15a7e..40bde9de58f 100644 --- a/src/test/json/json_value_test.cpp +++ b/src/test/json/json_value_test.cpp @@ -17,6 +17,14 @@ */ //============================================================================== +// We've been having some problems with continuous integration on Windows +// making sure the stack is big enough to support test_nest_limits. The +// following lines are intended to make sure we get an adequate stack for +// the test. +#ifdef _MSC_VER +#pragma comment(linker, "/STACK:4194304") +#endif + #include #include #include