Conversation
|
So what happens when the call to |
|
Also, do you have to handle the case when the disk fills up from the write? |
|
I would say not. when I try the test with a full disk I get an exception and the test fails. as with not enough memory I think it's good that a test that can't usefully verify a fix on some machine fails. I tried eating those exceptions and at least BOOST_WARN_MESSAGE()ing about it, but I don't actually see those warnings show up anywhere then, so then the test just silently passes when not enough memory or disk. that seems bad. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #78 +/- ##
========================================
Coverage 69.04% 69.04%
========================================
Files 80 80
Lines 3437 3437
Branches 1025 1025
========================================
Hits 2373 2373
Misses 451 451
Partials 613 613 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
on a theoretical 64bit Windows machine where allocating 4+GB fails the test would presumably exception out with a bad_alloc. that would make sense as such a theoretical Windows machine would be unable to properly run this test or verify that a fix fixed it.