Skip to content

Commit

Permalink
Skip dtls fuzzing tests when dtls i s disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
fwh-dc committed Mar 6, 2024
1 parent 3f1dcda commit d3bb9c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/recipes/99-test_fuzz_dtlsclient.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env perl
# Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.
# Copyright 2024 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
Expand All @@ -15,6 +15,9 @@ use OpenSSL::Test::Utils;
my $fuzzer = "dtlsclient";
setup("test_fuzz_${fuzzer}");

plan skip_all => "This test requires dtls support"
if disabled("dtls");

plan tests => 2; # one more due to below require_ok(...)

require_ok(srctop_file('test','recipes','fuzz.pl'));
Expand Down
5 changes: 4 additions & 1 deletion test/recipes/99-test_fuzz_dtlsserver.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env perl
# Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.
# Copyright 2024 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
Expand All @@ -15,6 +15,9 @@ use OpenSSL::Test::Utils;
my $fuzzer = "dtlsserver";
setup("test_fuzz_${fuzzer}");

plan skip_all => "This test requires dtls support"
if disabled("dtls");

plan tests => 2; # one more due to below require_ok(...)

require_ok(srctop_file('test','recipes','fuzz.pl'));
Expand Down

0 comments on commit d3bb9c5

Please sign in to comment.