From: Dr. David von Oheimb Date: Mon, 8 Sep 2025 05:59:23 +0000 (+0200) Subject: 25-test_verify.t: fix misleading test case names and file variable name X-Git-Tag: 4.0-PRE-CLANG-FORMAT-WEBKIT~479 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5eaa0e1e35117904e8b21a994f03d25f3558a2a;p=thirdparty%2Fopenssl.git 25-test_verify.t: fix misleading test case names and file variable name Reviewed-by: Matt Caswell Reviewed-by: Tom Cosgrove Reviewed-by: Saša Nedvědický Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/28469) --- diff --git a/test/recipes/25-test_verify.t b/test/recipes/25-test_verify.t index 94157f84dec..c61bb59e859 100644 --- a/test/recipes/25-test_verify.t +++ b/test/recipes/25-test_verify.t @@ -610,13 +610,15 @@ SKIP: { if $^O =~ /^(MSWin32|VMS)$/; my $foo_file = "foo:cert.pem"; copy($rootcert, $foo_file); - ok(vfy_root("-CAstore", $foo_file), "CAstore foo:file"); - ok(vfy_root("-CAstore", "file:".$foo_file), "CAstore file:foo:file"); + ok(vfy_root("-CAstore", $foo_file), "CAstore foo:cert.pem"); + ok(vfy_root("-CAstore", "file:".$foo_file), "CAstore file:foo:cert.pem"); } -my $foo_file = "cert.pem"; -copy($rootcert, $foo_file); -ok(vfy_root("-CAstore", $foo_file), "CAstore foo:file"); -ok(vfy_root("-CAstore", "file:".$foo_file), "CAstore file:foo:file"); + +my $file = "cert.pem"; +copy($rootcert, $file); +ok(vfy_root("-CAstore", $file), "CAstore cert.pem"); +ok(vfy_root("-CAstore", "file:".$file), "CAstore file:cert.pem"); + my $abs_cert = abs_path($rootcert); # Windows file: URIs should have a path part starting with a slash, i.e. # file://authority/C:/what/ever/foo.pem and file:///C:/what/ever/foo.pem