diff options
author | Brad King <brad.king@kitware.com> | 2013-05-16 18:43:44 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-05-16 18:43:44 (GMT) |
commit | a052a79949d9db00cea73f45b2122a67d549a7a8 (patch) | |
tree | 42f1cc8e0cfebe75bd4e21a4ddd6dde45fece3d7 /Source/CTest/cmCTestTestHandler.cxx | |
parent | 86cecd1c6b4b7dfba99d4eb9e2546c47b79e8503 (diff) | |
parent | 9969bfb77370f60053867b5afbe7b1076b7104b9 (diff) | |
download | CMake-a052a79949d9db00cea73f45b2122a67d549a7a8.zip CMake-a052a79949d9db00cea73f45b2122a67d549a7a8.tar.gz CMake-a052a79949d9db00cea73f45b2122a67d549a7a8.tar.bz2 |
Merge topic 'CTest-less-cd'
9969bfb CTest: avoid useless changing of directory
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestTestHandler.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index 3a9b192..0508448 100644 --- a/Source/CTest/cmCTestTestHandler.cxx +++ b/Source/CTest/cmCTestTestHandler.cxx @@ -82,7 +82,6 @@ bool cmCTestSubdirCommand std::string cwd = cmSystemTools::GetCurrentWorkingDirectory(); for ( it = args.begin(); it != args.end(); ++ it ) { - cmSystemTools::ChangeDirectory(cwd.c_str()); std::string fname; if(cmSystemTools::FileIsFullPath(it->c_str())) @@ -116,7 +115,6 @@ bool cmCTestSubdirCommand else { // No CTestTestfile? Who cares... - cmSystemTools::ChangeDirectory(cwd.c_str()); continue; } fname += "/"; @@ -133,6 +131,7 @@ bool cmCTestSubdirCommand return false; } } + cmSystemTools::ChangeDirectory(cwd.c_str()); return true; } |