Description: t/90-diag.t: Skip on NO_NETWORK_TESTING
 t/90-diag.t needs network, skip if NO_NETWORK_TESTING is set.
Origin: vendor
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2025-08-29
Forwarded: https://github.com/CPAN-Security/Net-CVE/pull/12
Bug: https://github.com/CPAN-Security/Net-CVE/pull/12

--- a/t/90-diag.t
+++ b/t/90-diag.t
@@ -8,6 +8,11 @@
 
 use Net::CVE;
 
+if ($ENV{NO_NETWORK_TESTING}) {
+    print "1..0 # SKIP Live tests disabled due to NO_NETWORK_TESTING\n";
+    exit 0;
+    }
+
 my $bad = "XYZ-2-BAZ";
 my @w;
 
