-
Notifications
You must be signed in to change notification settings - Fork 121
test for issue 76 #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, we identified something with a test. Now we need to fix it. :)
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.