summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-07-28 14:08:46 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-07-28 14:08:46 (GMT)
commiteda29e66320f0722d3f508d5b607d7fa8771227f (patch)
tree573b257f451522592a3cc23f8d99138a489900eb /Source/CTest
parenteb2b23e0d9648a5e70b8c7f917f1bfa2f058dfcd (diff)
parent64821e8a40cf1add0cf3fd99b0860378754c64cf (diff)
downloadCMake-eda29e66320f0722d3f508d5b607d7fa8771227f.zip
CMake-eda29e66320f0722d3f508d5b607d7fa8771227f.tar.gz
CMake-eda29e66320f0722d3f508d5b607d7fa8771227f.tar.bz2
Merge topic 'ctest-add_subdirectory-crash'
64821e8a ctest: fix add_subdirectory() crash
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index 5faf001..c8a0d27 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -176,7 +176,7 @@ bool cmCTestAddSubdirectoryCommand
cmSystemTools::ChangeDirectory(cwd);
std::string fname = cwd;
fname += "/";
- fname += args[1];
+ fname += args[0];
if ( !cmSystemTools::FileExists(fname.c_str()) )
{