Simplify Simple.pm further, and make it more verbose
authorRichard Levitte <levitte@openssl.org>
Sun, 20 Sep 2015 00:15:49 +0000 (02:15 +0200)
committerRichard Levitte <levitte@openssl.org>
Sun, 20 Sep 2015 00:15:49 +0000 (02:15 +0200)
Reviewed-by: Stephen Henson <steve@openssl.org>
test/testlib/OpenSSL/Test/Simple.pm

index 0637e3dcccb13b9ca3b92194008bbae0b031bc84..dfae026014442869f6add412b4c72f65f468fe1e 100644 (file)
@@ -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