test_cmp_ctx: Avoid using empty X509 with i2d
[openssl.git] / test / recipes / 65-test_cmp_ctx.t
index 93f26ea994c518ad848f0932c437d45aaa4c4d95..069c0e660ba46202f2a92f1b9629979f508470c0 100644 (file)
@@ -10,7 +10,7 @@
 
 
 use strict;
-use OpenSSL::Test;              # get 'plan'
+use OpenSSL::Test qw/:DEFAULT srctop_file/;
 use OpenSSL::Test::Simple;
 use OpenSSL::Test::Utils;
 
@@ -19,4 +19,6 @@ setup("test_cmp_ctx");
 plan skip_all => "This test is not supported in a no-cmp build"
     if disabled("cmp");
 
-simple_test("test_cmp_ctx", "cmp_ctx_test", "cmp_ctx");
+plan tests => 1;
+
+ok(run(test(["cmp_ctx_test", srctop_file("test", "certs", "ee-cert.pem")])));