summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestEmptyBinaryDirectoryCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-02-16 21:06:11 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-02-16 21:06:11 (GMT)
commitae63ae6a6e48d2c502c7318dce66398183e6dbe4 (patch)
tree287bed9ad11a3fa305f38207bc5f2f990198bb14 /Source/CTest/cmCTestEmptyBinaryDirectoryCommand.cxx
parenta8c74a6b57be8b7b14f51e605eb7db731a19f62e (diff)
downloadCMake-ae63ae6a6e48d2c502c7318dce66398183e6dbe4.zip
CMake-ae63ae6a6e48d2c502c7318dce66398183e6dbe4.tar.gz
CMake-ae63ae6a6e48d2c502c7318dce66398183e6dbe4.tar.bz2
BUG: Report errors
Diffstat (limited to 'Source/CTest/cmCTestEmptyBinaryDirectoryCommand.cxx')
-rw-r--r--Source/CTest/cmCTestEmptyBinaryDirectoryCommand.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestEmptyBinaryDirectoryCommand.cxx b/Source/CTest/cmCTestEmptyBinaryDirectoryCommand.cxx
index 90d88ce..024ed21 100644
--- a/Source/CTest/cmCTestEmptyBinaryDirectoryCommand.cxx
+++ b/Source/CTest/cmCTestEmptyBinaryDirectoryCommand.cxx
@@ -27,7 +27,11 @@ bool cmCTestEmptyBinaryDirectoryCommand::InitialPass(
return false;
}
- cmCTestScriptHandler::EmptyBinaryDirectory(args[0].c_str());
+ if ( !cmCTestScriptHandler::EmptyBinaryDirectory(args[0].c_str()) )
+ {
+ this->SetError("problem removing the binary directory");
+ return false;
+ }
return true;
}