]> git.ipfire.org Git - thirdparty/openssl.git/blame - test/recipes/90-test_quicfaults.t
Raise an error on syscall failure in tls_retry_write_records
[thirdparty/openssl.git] / test / recipes / 90-test_quicfaults.t
CommitLineData
adef87a2 1#! /usr/bin/env perl
da1c088f 2# Copyright 2022-2023 The OpenSSL Project Authors. All Rights Reserved.
adef87a2
MC
3#
4# Licensed under the Apache License 2.0 (the "License"). You may not use
5# this file except in compliance with the License. You can obtain a copy
6# in the file LICENSE in the source distribution or at
7# https://www.openssl.org/source/license.html
8
9
10use OpenSSL::Test::Utils;
11use OpenSSL::Test qw/:DEFAULT srctop_dir bldtop_dir/;
12
13BEGIN {
14setup("test_quicfaults");
15}
16
17use lib srctop_dir('Configurations');
18use lib bldtop_dir('.');
19
20plan skip_all => "QUIC protocol is not supported by this OpenSSL build"
21 if disabled('quic');
22
fac61ea4
TM
23plan skip_all => "These tests are not supported in a fuzz build"
24 if config('options') =~ /-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION|enable-fuzz-afl/;
25
80b9eca2 26plan tests => 2;
adef87a2
MC
27
28ok(run(test(["quicfaultstest", srctop_dir("test", "certs")])),
29 "running quicfaultstest");
80b9eca2
TM
30
31ok(run(test(["quic_newcid_test", srctop_dir("test", "certs")])),
32 "running quic_newcid_test");