Skip to content

Commit

Permalink
CPP tests: Better JVM heap adjustment for 32-bit platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
vozerov-gridgain committed Sep 9, 2015
1 parent 597c5d9 commit 6771638
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
Expand Up @@ -124,7 +124,7 @@
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>$(JAVA_HOME)\include;$(JAVA_HOME)\include\win32;$(ProjectDir)\..\..\..\common\include;$(ProjectDir)\..\..\..\common\os\win\include;$(ProjectDir)\..\..\..\core\include;$(ProjectDir)\..\..\..\core\os\win\include;$(ProjectDir)\..\..\include;$(BOOST_HOME)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_DEBUG;IGNITE_IMPL;BOOST_DATE_TIME_NO_LIB;BOOST_REGEX_NO_LIB;_CRT_SECURE_NO_WARNINGS;IGNITE_FRIEND;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>_DEBUG;IGNITE_IMPL;BOOST_DATE_TIME_NO_LIB;BOOST_REGEX_NO_LIB;_CRT_SECURE_NO_WARNINGS;IGNITE_FRIEND;IGNITE_TESTS_32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ExceptionHandling>Async</ExceptionHandling>
</ClCompile>
<Link>
Expand Down Expand Up @@ -158,7 +158,7 @@
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>$(JAVA_HOME)\include;$(JAVA_HOME)\include\win32;$(ProjectDir)\..\..\..\common\include;$(ProjectDir)\..\..\..\common\os\win\include;$(ProjectDir)\..\..\..\core\include;$(ProjectDir)\..\..\..\core\os\win\include;$(ProjectDir)\..\..\include;$(BOOST_HOME)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NDEBUG;IGNITE_IMPL;BOOST_DATE_TIME_NO_LIB;BOOST_REGEX_NO_LIB;_CRT_SECURE_NO_WARNINGS;IGNITE_FRIEND;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>NDEBUG;IGNITE_IMPL;BOOST_DATE_TIME_NO_LIB;BOOST_REGEX_NO_LIB;_CRT_SECURE_NO_WARNINGS;IGNITE_FRIEND;IGNITE_TESTS_32%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ExceptionHandling>Async</ExceptionHandling>
</ClCompile>
<Link>
Expand Down
Expand Up @@ -199,8 +199,13 @@ struct CacheQueryTestSuiteFixture {
cfg.jvmOptsLen = 5;
cfg.jvmOpts = opts;

#ifdef IGNITE_TESTS_32
cfg.jvmInitMem = 256;
cfg.jvmMaxMem = 768;
#else
cfg.jvmInitMem = 1024;
cfg.jvmMaxMem = 4096;
#endif

char* cfgPath = getenv("IGNITE_NATIVE_TEST_CPP_CONFIG_PATH");

Expand Down
5 changes: 5 additions & 0 deletions modules/platform/src/main/cpp/core-test/src/cache_test.cpp
Expand Up @@ -106,8 +106,13 @@ struct CacheTestSuiteFixture {
cfg.jvmOptsLen = 5;
cfg.jvmOpts = opts;

#ifdef IGNITE_TESTS_32
cfg.jvmInitMem = 256;
cfg.jvmMaxMem = 768;
#else
cfg.jvmInitMem = 1024;
cfg.jvmMaxMem = 4096;
#endif

char* cfgPath = getenv("IGNITE_NATIVE_TEST_CPP_CONFIG_PATH");

Expand Down
9 changes: 7 additions & 2 deletions modules/platform/src/main/cpp/core-test/src/ignition_test.cpp
Expand Up @@ -44,8 +44,13 @@ BOOST_AUTO_TEST_CASE(TestIgnition)
cfg.jvmOptsLen = 5;
cfg.jvmOpts = opts;

cfg.jvmInitMem = 256;
cfg.jvmMaxMem = 768;
#ifdef IGNITE_TESTS_32
cfg.jvmInitMem = 256;
cfg.jvmMaxMem = 768;
#else
cfg.jvmInitMem = 1024;
cfg.jvmMaxMem = 4096;
#endif

char* cfgPath = getenv("IGNITE_NATIVE_TEST_CPP_CONFIG_PATH");

Expand Down

0 comments on commit 6771638

Please sign in to comment.