Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
a5b09a49
Commit
a5b09a49
authored
Jul 16, 2012
by
Mukund Sivaraman
Browse files
[master} Pass ULONG_MAX to MemorySegment->allocate()
This fixes a build failure on the build bots.
parent
af3a7eee
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/util/tests/memory_segment_local_unittest.cc
View file @
a5b09a49
...
...
@@ -16,6 +16,7 @@
#include
<exceptions/exceptions.h>
#include
<gtest/gtest.h>
#include
<memory>
#include
<limits.h>
using
namespace
std
;
using
namespace
isc
::
util
;
...
...
@@ -56,7 +57,7 @@ TEST(MemorySegmentLocal, TestLocal) {
TEST
(
MemorySegmentLocal
,
TestTooMuchMemory
)
{
auto_ptr
<
MemorySegment
>
segment
(
new
MemorySegmentLocal
());
EXPECT_THROW
(
segment
->
allocate
(
0x7fffffffffffffff
),
bad_alloc
);
EXPECT_THROW
(
segment
->
allocate
(
ULONG_MAX
),
bad_alloc
);
}
TEST
(
MemorySegmentLocal
,
TestBadDeallocate
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment