mirror of
https://github.com/boostorg/beast.git
synced 2025-08-03 14:54:32 +02:00
Add test for invalid inflate stream settings
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
This commit is contained in:
committed by
Vinnie Falco
parent
4be185eb2b
commit
5937c06cd0
@@ -413,6 +413,16 @@ public:
|
||||
error::invalid_distance);
|
||||
}
|
||||
|
||||
void testInvalidSettings()
|
||||
{
|
||||
except<std::domain_error>(
|
||||
[]()
|
||||
{
|
||||
inflate_stream is;
|
||||
is.reset(7);
|
||||
});
|
||||
}
|
||||
|
||||
void
|
||||
run() override
|
||||
{
|
||||
@@ -421,6 +431,7 @@ public:
|
||||
sizeof(inflate_stream) << std::endl;
|
||||
testInflate();
|
||||
testInflateErrors();
|
||||
testInvalidSettings();
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user