]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix visual glitch in non-verbose test output
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 24 May 2022 16:48:02 +0000 (18:48 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Sat, 28 May 2022 15:02:55 +0000 (17:02 +0200)
This fixes a glitch in the non-verbose test output
$ make test
[...]
80-test_ciphername.t .... ok
80-test_cmp_http.t ...... 5/?
80-test_cmp_http.t ...... ok   611
80-test_cms.t ........... ok
80-test_cmsapi.t ........ ok

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18401)

test/recipes/80-test_cmp_http.t

index 75acc07a4c4ab3198c790661f462d1c2d630e277..02ec2bb9a4931bbb08b8db21305704ee6b774506 100644 (file)
@@ -170,7 +170,7 @@ sub test_cmp_http_aspect {
 # from $BLDTOP/test-runs/test_cmp_http and prepending the input files by SRCTOP.
 
 indir data_dir() => sub {
-    plan tests => @server_configurations * @all_aspects
+    plan tests => 1 + @server_configurations * @all_aspects
         + (grep(/^Mock$/, @server_configurations)
            && grep(/^certstatus$/, @all_aspects));
 
@@ -196,6 +196,7 @@ indir data_dir() => sub {
                 };
             };
             stop_mock_server($pid) if $pid;
+            ok(1, "killing mock server");
           }
         }
     };
@@ -294,4 +295,5 @@ sub stop_mock_server {
     my $pid = $_[0];
     print "Killing mock server with pid=$pid\n";
     kill('KILL', $pid);
+    waitpid($pid, 0);
 }