You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by yl...@apache.org on 2020/12/05 17:23:40 UTC

svn commit: r1884130 - /httpd/test/framework/trunk/t/ab/base.t

Author: ylavic
Date: Sat Dec  5 17:23:40 2020
New Revision: 1884130

URL: http://svn.apache.org/viewvc?rev=1884130&view=rev
Log:
Don't let ASan (LeakSanitizer) fail the "ab" test because of "ab" memory leaks.

Modified:
    httpd/test/framework/trunk/t/ab/base.t

Modified: httpd/test/framework/trunk/t/ab/base.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/ab/base.t?rev=1884130&r1=1884129&r2=1884130&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/ab/base.t (original)
+++ httpd/test/framework/trunk/t/ab/base.t Sat Dec  5 17:23:40 2020
@@ -29,14 +29,14 @@ sub run_and_gather_output {
 my $ab_path = catfile $vars->{bindir}, "ab";
 
 my $http_url = Apache::TestRequest::module2url("core", {scheme => 'http', path => '/'});
-my $http_results = run_and_gather_output("$ab_path -B 127.0.0.1 -q -n 10 $http_url");
+my $http_results = run_and_gather_output("ASAN_OPTIONS='detect_leaks=0' $ab_path -B 127.0.0.1 -q -n 10 $http_url");
 ok ($http_results->{status} == 0);
 ok (scalar(@{$http_results->{stderr}}) == 0);
 
 if ($vars->{ssl_module_name}) {
     my $https_url = Apache::TestRequest::module2url($vars->{ssl_module_name}, {scheme => 'https', path => '/'});
-    my $https_results = run_and_gather_output("$ab_path -B 127.0.0.1 -q -n 10 $https_url");
-    ok ($https_results->{status} == 0);
+    my $https_results = run_and_gather_output("ASAN_OPTIONS='detect_leaks=0' $ab_path -B 127.0.0.1 -q -n 10 $https_url");
+    ok $https_results->{status}, 0;
     ok (scalar(@{$https_results->{stderr}}), 0, 
         "https had stderr output:" . Dumper $https_results->{stderr});