Commit a5b09a49 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[master} Pass ULONG_MAX to MemorySegment->allocate()

This fixes a build failure on the build bots.
parent af3a7eee
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment