Skip to content

Commit

Permalink
Force Windows stack size for json_value::test_nest_limits
Browse files Browse the repository at this point in the history
  • Loading branch information
scottschurr committed Jan 19, 2018
1 parent eaff9a0 commit 1344d99
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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" }
}
Expand Down
8 changes: 8 additions & 0 deletions src/test/json/json_value_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <BeastConfig.h>
#include <ripple/json/json_value.h>
#include <ripple/json/json_reader.h>
Expand Down

0 comments on commit 1344d99

Please sign in to comment.