summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-12-30 19:42:34 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2020-12-30 19:42:34 +0000
commit53ba48e9459d518811f30574e9eaa0122a57aafc (patch)
tree51b61de1d4e2bfeed2de6e15b9cc0a22701cd7f8
parentDisable named parameter check (diff)
downloadnetfs-53ba48e9459d518811f30574e9eaa0122a57aafc.tar.bz2
netfs-53ba48e9459d518811f30574e9eaa0122a57aafc.tar.xz
netfs-53ba48e9459d518811f30574e9eaa0122a57aafc.zip
Don't add upper() to context
It's out of bounds in some cases
-rw-r--r--netfs/unittests/testCore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/netfs/unittests/testCore.cpp b/netfs/unittests/testCore.cpp
index cdbb958..1e68be5 100644
--- a/netfs/unittests/testCore.cpp
+++ b/netfs/unittests/testCore.cpp
@@ -653,7 +653,7 @@ BOOST_AUTO_TEST_CASE(interval_map_works_how_i_think)
auto check = [&](off_t o, size_t s, int c) {
BOOST_TEST_CONTEXT("offset: " << o << ", size: " << s << ", count: " << c) {
const auto ol = map.equal_range(r(o, s));
- BOOST_TEST_CONTEXT("range: " << ol.first->first.lower() << " to " << ol.first->first.upper()) {
+ BOOST_TEST_CONTEXT("range start: " << ol.first->first.lower()) {
BOOST_REQUIRE_EQUAL(std::distance(ol.first, ol.second), c);
}
}