]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
test/recipes/81-test_cmp_cli.t: use app() rather than cmd()
authorRichard Levitte <levitte@openssl.org>
Mon, 21 Jun 2021 13:18:19 +0000 (15:18 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 22 Jun 2021 15:37:54 +0000 (17:37 +0200)
Fixes #15833

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15846)

test/recipes/81-test_cmp_cli.t

index 8cf787cb260b4c85a7397a856095a7cdc74fbd07..fd1a1b06076084238a24b500998a1aac5e7140ec 100644 (file)
@@ -28,7 +28,7 @@ plan skip_all => "These tests are not supported in a fuzz build"
 plan skip_all => "These tests are not supported in a no-cmp build"
     if disabled("cmp");
 
-my $app = bldtop_dir("apps/openssl cmp");
+my @app = qw(openssl cmp);
 
 my @cmp_basic_tests = (
     [ "show help",                        [ "-help"               ], 1 ],
@@ -53,7 +53,7 @@ foreach (@cmp_basic_tests) {
     my $title = $$_[0];
     my $params = $$_[1];
     my $expected = $$_[2];
-    ok($expected == run(cmd([$app, "-config", '', @$params])),
+    ok($expected == run(app([@app, "-config", '', @$params])),
        $title);
 }
 
@@ -66,7 +66,7 @@ foreach (@cmp_server_tests) {
     my $rsp_cert = srctop_file('test',  'certs', 'ee-cert-1024.pem');
     my $outfile = result_file("test.certout.pem");
     ok($expected ==
-       run(cmd([$app, "-config", '', @$extra_args,
+       run(app([@app, "-config", '', @$extra_args,
                 "-use_mock_srv", "-srv_ref", "mock server",
                 "-srv_secret", $secret,
                 "-rsp_cert", $rsp_cert,