diff options
Diffstat (limited to 'Source/CTest/cmCTestEmptyBinaryDirectoryCommand.cxx')
-rw-r--r-- | Source/CTest/cmCTestEmptyBinaryDirectoryCommand.cxx | 6 |
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; } |