diff options
-rw-r--r-- | src/tests/test_filters.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/test_filters.cpp b/src/tests/test_filters.cpp index 0d4793505..d3993cce3 100644 --- a/src/tests/test_filters.cpp +++ b/src/tests/test_filters.cpp @@ -211,6 +211,10 @@ class Filter_Tests final : public Test pipe.end_msg(); + result.test_throws("pipe error", + "Invalid argument Pipe::read: Invalid message number 100", + [&]() { uint8_t b; size_t got = pipe.read(&b, 1, 100); BOTAN_UNUSED(got); }); + pipe.append(nullptr); // ignored pipe.prepend(nullptr); // ignored pipe.pop(); // empty pipe, so ignored |