test/recipes/95-test_*.t : correct skip_all syntax
[openssl.git] / test / recipes / 95-test_external_krb5.t
index 998135440b53cd091bbc980f2e9cd1f727182ad9..6cc4d268157ea636a28438384e9c83dfc528dd48 100644 (file)
@@ -13,13 +13,11 @@ use OpenSSL::Test qw/:DEFAULT data_file srctop_file/;
 
 setup("test_external_krb5");
 
-plan tests => 1;
+plan skip_all => "No external tests in this configuration"
+    if disabled("external-tests");
+plan skip_all => "krb5 not available"
+    if ! -f srctop_file("krb5", "README");
 
-SKIP: {
-    skip "No external tests in this configuration", 1
-        if disabled("external-tests");
-    skip "krb5 not available", 1
-        if ! -f srctop_file("krb5", "README");
+plan tests => 1;
 
-    ok(run(cmd([data_file("krb5.sh")])), "running krb5 tests");
-}
+ok(run(cmd([data_file("krb5.sh")])), "running krb5 tests");