summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLib
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-09-09 17:49:03 (GMT)
committerBrad King <brad.king@kitware.com>2019-09-09 17:51:23 (GMT)
commit8588cdf3a021941ad15e3b289737bc9f1ecec84a (patch)
tree7c23d775b0fd724dadc169010adaebce368da119 /Tests/CMakeLib
parentf1f57cffc73cbb518d9559308f3d36a655e5738d (diff)
downloadCMake-8588cdf3a021941ad15e3b289737bc9f1ecec84a.zip
CMake-8588cdf3a021941ad15e3b289737bc9f1ecec84a.tar.gz
CMake-8588cdf3a021941ad15e3b289737bc9f1ecec84a.tar.bz2
clang-tidy: Fix bugprone-exception-escape diagnostic in test code
Diffstat (limited to 'Tests/CMakeLib')
-rw-r--r--Tests/CMakeLib/testUVProcessChainHelper.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/CMakeLib/testUVProcessChainHelper.cxx b/Tests/CMakeLib/testUVProcessChainHelper.cxx
index 263665d..a77ec90 100644
--- a/Tests/CMakeLib/testUVProcessChainHelper.cxx
+++ b/Tests/CMakeLib/testUVProcessChainHelper.cxx
@@ -44,7 +44,7 @@ int main(int argc, char** argv)
}
if (command == "dedup") {
// Use a nested scope to free all resources before aborting below.
- {
+ try {
std::string input = getStdin();
std::set<char> seen;
std::string output;
@@ -56,6 +56,7 @@ int main(int argc, char** argv)
}
std::cout << output << std::flush;
std::cerr << "3" << std::flush;
+ } catch (...) {
}
// On Windows, the exit code of abort() is different between debug and