v29.4-roots.2 · Commit 2: [PATCH 02/21] runtime: preserve shared operator controls
src/test/util_tests.cpp
Before: src/test/util_tests.cpp · After: src/test/util_tests.cpp
File metadata
index 4cacbd1151f040d9eac688675020bcc911a0143b..54580950b80398223409bce05dc8d47d397b29c8 100644
Download original patch · Release notes
Diff rows 1–8 of 8. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.
src/test/util_tests.cpp
CHANGED
|
@@ -1962,8 +1962,6 @@ BOOST_AUTO_TEST_CASE(mib_string_literal_test)
|
|
|
1962
1962
|
{
|
|
1963
1963
|
BOOST_CHECK_EQUAL(0_MiB, 0);
|
|
1964
1964
|
BOOST_CHECK_EQUAL(1_MiB, 1024 * 1024);
|
|
1965
|
-
const auto max_mib{std::numeric_limits<size_t>::max() >> 20};
|
|
1966
|
-
BOOST_CHECK_EXCEPTION(operator""_MiB(static_cast<unsigned long long>(max_mib) + 1), std::overflow_error, HasReason("MiB value too large for size_t byte conversion"));
|
|
1967
1965
|
}
|
|
1968
1966
|
|
|
1969
1967
|
BOOST_AUTO_TEST_SUITE_END()
|