Make tests use configdata.pm rather than parsing Makefile
[openssl.git] / test / recipes / 70-test_sslskewith0p.t
index c31ea0ddfd0e79e025c8662543a06cdb1a79e9ea..39c0409427833d0bc0cef3b2bb31961536f9ad68 100755 (executable)
@@ -67,9 +67,7 @@ plan skip_all => "$test_name needs the engine feature enabled"
     if disabled("engine");
 
 plan skip_all => "$test_name can only be performed with OpenSSL configured shared"
-    unless (map { s/\R//; s/^SHARED_LIBS=\s*//; $_ }
-           grep { /^SHARED_LIBS=/ }
-           do { local @ARGV = ( top_file("Makefile") ); <> })[0] ne "";
+    if config("no_shared");
 
 plan skip_all => "dh is not supported by this OpenSSL build"
     if disabled("dh");