From: Richard Levitte <levitte@openssl.org>
Date: Sun, 20 Sep 2015 00:15:49 +0000 (+0200)
Subject: Simplify Simple.pm further, and make it more verbose
X-Git-Tag: OpenSSL_1_1_0-pre1~580
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=777ae7c4eea9e517cfacddb92c37c481ad500747;p=oweals%2Fopenssl.git

Simplify Simple.pm further, and make it more verbose

Reviewed-by: Stephen Henson <steve@openssl.org>
---

diff --git a/test/testlib/OpenSSL/Test/Simple.pm b/test/testlib/OpenSSL/Test/Simple.pm
index 0637e3dccc..dfae026014 100644
--- a/test/testlib/OpenSSL/Test/Simple.pm
+++ b/test/testlib/OpenSSL/Test/Simple.pm
@@ -56,13 +56,12 @@ sub simple_test {
 
     setup($name);
 
+    plan skip_all => "$algo is not supported by this OpenSSL build"
+        if $algo && disabled($algo);
+
     plan tests => 1;
-  SKIP: {
-      skip "$algo is not supported by this OpenSSL build, skipping this test...", 1
-	  if $algo && disabled($algo);
 
-      ok(run(test([$prgr])), "running $prgr");
-    }
+    ok(run(test([$prgr])), "running $prgr");
 }
 
 =head1 SEE ALSO