From 52d627a95d37a658d5d27b74249265433e8fb7f1 Mon Sep 17 00:00:00 2001 From: khizmax Date: Wed, 1 Jun 2016 23:14:38 +0300 Subject: [PATCH] Added CDSTEST_CFG envvar for stress test. This enavar contains filename of test configuration --- projects/Win/vc14/stress-framework.vcxproj | 9 ++++++++- test/stress/framework/config.cpp | 7 ++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/projects/Win/vc14/stress-framework.vcxproj b/projects/Win/vc14/stress-framework.vcxproj index f4de7a03..0d255bc7 100644 --- a/projects/Win/vc14/stress-framework.vcxproj +++ b/projects/Win/vc14/stress-framework.vcxproj @@ -40,7 +40,14 @@ 4267 4267 - + + _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + diff --git a/test/stress/framework/config.cpp b/test/stress/framework/config.cpp index 14505c0a..2ba8ce22 100644 --- a/test/stress/framework/config.cpp +++ b/test/stress/framework/config.cpp @@ -133,7 +133,12 @@ namespace cds_test { } } - if ( !cfg_file ) + if ( !cfg_file ) { + // Get cfg filename from environment variable + cfg_file = getenv( "CDSTEST_CFG" ); + } + + if ( !cfg_file || *cfg_file == 0 ) cfg_file = default_cfg_file; ::testing::Test::RecordProperty( "config_file", cfg_file ); -- 2.34.1