VMS perl doesn't implement fork(), so don't run the TLSProxy tests there
[openssl.git] / test / recipes / 80-test_ocsp.t
index cc4e56f08a022f80d156e246ac3bc84de651a7b1..6e256c7122279030384ee912a6288a1bd31c87de 100644 (file)
@@ -6,7 +6,6 @@ use warnings;
 use POSIX;
 use File::Spec::Functions qw/devnull catfile/;
 use File::Copy;
-use Test::More;
 use OpenSSL::Test qw/:DEFAULT with pipe top_dir/;
 
 setup("test_ocsp");
@@ -21,15 +20,17 @@ sub test_ocsp {
     my $CAfile = shift;
     my $expected_exit = shift;
 
+    run(app(["openssl", "base64", "-d",
+             "-in", catfile($ocspdir,$inputfile),
+             "-out", "ocsp-resp-fff.dat"]));
     with({ exit_checker => sub { return shift == $expected_exit; } },
-        sub { ok(run(pipe(app(["openssl", "base64", "-d",
-                               "-in", catfile($ocspdir,$inputfile)]),
-                          app(["openssl", "ocsp", "-respin", "-",
-                               "-partial_chain", @check_time,
-                               "-CAfile", catfile($ocspdir, $CAfile),
-                               "-verify_other", catfile($ocspdir, $CAfile),
-                               "-CApath", devnull()]))),
-                 $title); });
+         sub { ok(run(app(["openssl", "ocsp", "-respin", "ocsp-resp-fff.dat",
+                           "-partial_chain", @check_time,
+                           "-CAfile", catfile($ocspdir, $CAfile),
+                           "-verify_other", catfile($ocspdir, $CAfile),
+                           "-no-CApath"])),
+                  $title); });
+    unlink "ocsp-resp-fff.dat";
 }
 
 plan tests => 10;