Don't run TLSFuzzer tests when it is not properly set
authorDmitry Belyavskiy <beldmit@gmail.com>
Sun, 9 Jan 2022 16:39:41 +0000 (17:39 +0100)
committerDmitry Belyavskiy <beldmit@gmail.com>
Tue, 11 Jan 2022 17:01:47 +0000 (18:01 +0100)
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17448)

test/recipes/95-test_external_tlsfuzzer.t

index e506f8007a7ce8d1381b584188312f492a461936..265968e02df53c19f2349532768f41af7dc1869b 100644 (file)
@@ -18,8 +18,8 @@ plan skip_all => "No external tests in this configuration"
     if disabled("external-tests");
 plan skip_all => "TLSFuzzer tests not available on Windows or VMS"
     if $^O =~ /^(VMS|MSWin32)$/;
-plan skip_all => "TLSFuzzer tests not supported in out of tree builds"
-    if bldtop_dir() ne srctop_dir();
+plan skip_all => "TLSFuzzer is not properly checked out"
+    unless (-d srctop_dir("tlsfuzzer") && -d srctop_dir("tlsfuzzer", "tests"));
 
 $ENV{TESTDATADIR} = abs_path(data_dir());
 plan tests => 1;