[openssl-commits] [openssl] master update

Richard Levitte levitte at openssl.org
Thu May 11 18:42:32 UTC 2017


The branch master has been updated
       via  0b10da806a3a15b9bfe24ce8d67d3ebac7b7ab06 (commit)
      from  46fcbf77bc6f2a287cb7266c58c204aa3960e456 (commit)


- Log -----------------------------------------------------------------
commit 0b10da806a3a15b9bfe24ce8d67d3ebac7b7ab06
Author: Richard Levitte <levitte at openssl.org>
Date:   Thu May 11 19:32:43 2017 +0200

    testutil: Fix non-standard subtest output
    
    In some cases, testutil outputs subtests like this:
    
        1..6 # Subtest: progname
    
    The standard set by Test::More (because there really is no actual
    standard yet) gives this display:
    
        # Subtest: progname
        1..6
    
    Until the standard is actually agreed upon, let's do it like
    Test::More.
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/3446)

-----------------------------------------------------------------------

Summary of changes:
 test/testutil/driver.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/test/testutil/driver.c b/test/testutil/driver.c
index 660db7b..7be6d2f 100644
--- a/test/testutil/driver.c
+++ b/test/testutil/driver.c
@@ -134,14 +134,14 @@ int run_tests(const char *test_prog_name)
     char *verdict = NULL;
     int i, j;
 
-    if (num_tests < 1)
+    if (num_tests < 1) {
         test_printf_stdout("%*s1..0 # Skipped: %s\n", level, "",
                            test_prog_name);
-    else if (level > 0)
-        test_printf_stdout("%*s1..%d # Subtest: %s\n", level, "", num_tests,
-                           test_prog_name);
-    else
+    } else {
+        if (level > 0)
+            test_printf_stdout("%*s# Subtest: %s\n", level, "", test_prog_name);
         test_printf_stdout("%*s1..%d\n", level, "", num_tests);
+    }
     test_flush_stdout();
 
     for (i = 0; i != num_tests; ++i) {


More information about the openssl-commits mailing list