diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-09-07 03:31:41 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-09-07 03:31:41 (GMT) |
commit | fcce3ac0a14e89f81cc1dfe618b0bca776bf2329 (patch) | |
tree | 86e18f2a01502f5a208fb7cfbf87788aa242571f /Source/cmLocalGenerator.cxx | |
parent | 52b808257dbe9536e6b035c1bdaacbfa1c9b1c36 (diff) | |
download | CMake-fcce3ac0a14e89f81cc1dfe618b0bca776bf2329.zip CMake-fcce3ac0a14e89f81cc1dfe618b0bca776bf2329.tar.gz CMake-fcce3ac0a14e89f81cc1dfe618b0bca776bf2329.tar.bz2 |
ENH: Add a way for test to intentionally fail
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index f0e531d..1aa0686 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -177,7 +177,17 @@ void cmLocalGenerator::GenerateTestFiles() fout << "\""; } fout << ")" << std::endl; - + std::map<cmStdString,cmStdString>::const_iterator pit; + const std::map<cmStdString,cmStdString>* mpit = &test->GetProperties(); + if ( mpit->size() ) + { + fout << "SET_TESTS_PROPERTIES(" << test->GetName() << " PROPERTIES "; + for ( pit = mpit->begin(); pit != mpit->end(); ++ pit ) + { + fout << " " << pit->first.c_str() << " \"" << pit->second.c_str() << "\""; + } + fout << ")" << std::endl; + } } if ( this->Children.size()) { |