summaryrefslogtreecommitdiff
path: root/test/recipes
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2022-06-16 17:30:46 +0100
committerHugo Landau <hlandau@openssl.org>2022-07-28 08:06:52 +0100
commit3bfc58ad6f150e343c75565e2b162b80ec39a28d (patch)
treeaef290942ee8d0fb1301612a396b6f865e21d198 /test/recipes
parent5a4ba72f00f9b336a4d65abff822699ceb9617c6 (diff)
downloadopenssl-new-3bfc58ad6f150e343c75565e2b162b80ec39a28d.tar.gz
Add a test for BIO_s_mem() when using datagrams
The previous commit added support to BIO_s_mem() for using datagrams. We now add tests for that functionality. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Hugo Landau <hlandau@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18596)
Diffstat (limited to 'test/recipes')
-rw-r--r--test/recipes/04-test_membio.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/recipes/04-test_membio.t b/test/recipes/04-test_membio.t
new file mode 100644
index 0000000000..58d1080fb8
--- /dev/null
+++ b/test/recipes/04-test_membio.t
@@ -0,0 +1,16 @@
+#! /usr/bin/env perl
+# Copyright 2016-2022 The OpenSSL Project Authors. All Rights Reserved.
+#
+# Licensed under the Apache License 2.0 (the "License"). You may not use
+# this file except in compliance with the License. You can obtain a copy
+# in the file LICENSE in the source distribution or at
+# https://www.openssl.org/source/license.html
+
+use strict;
+use OpenSSL::Test;
+use OpenSSL::Test::Simple;
+use OpenSSL::Test::Utils;
+
+setup("test_membio");
+
+simple_test("test_membio", "membio_test");