We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c890c1 commit 5f24abeCopy full SHA for 5f24abe
test/boostLocale/test/unit_test.hpp
@@ -1,6 +1,6 @@
1
//
2
// Copyright (c) 2009-2011 Artyom Beilis (Tonkikh)
3
-// Copyright (c) 2021-2022 Alexander Grund
+// Copyright (c) 2021-2025 Alexander Grund
4
// Copyright (c) 2002, 2009, 2014 Peter Dimov
5
6
// Distributed under the Boost Software License, Version 1.0.
@@ -95,7 +95,8 @@ namespace boost { namespace locale { namespace test {
95
boost::locale::test::results().test_counter++;
96
if(!v) {
97
boost::locale::test::report_error(expr, file, line);
98
- throw std::runtime_error("Critical test " + std::string(expr) + " failed");
+ if(require)
99
+ throw std::runtime_error("Critical test " + std::string(expr) + " failed");
100
}
101
return v;
102
0 commit comments