mirror of
https://github.com/curl/curl.git
synced 2025-02-23 15:10:03 +08:00
-n disables valgrind now
This commit is contained in:
parent
1e251a64f3
commit
b9d3c71178
@ -65,20 +65,6 @@ my $skipped=0; # number of tests skipped; reported in main loop
|
|||||||
my %skipped; # skipped{reason}=counter, reasons for skip
|
my %skipped; # skipped{reason}=counter, reasons for skip
|
||||||
my @teststat; # teststat[testnum]=reason, reasons for skip
|
my @teststat; # teststat[testnum]=reason, reasons for skip
|
||||||
|
|
||||||
if($valgrind) {
|
|
||||||
# we have found valgrind on the host, use it
|
|
||||||
|
|
||||||
# verify that we can invoke it fine
|
|
||||||
my $code = system("valgrind >/dev/null 2>&1");
|
|
||||||
|
|
||||||
if(($code>>8) != 1) {
|
|
||||||
#print "Valgrind failure, disable it\n";
|
|
||||||
undef $valgrind;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$CURL="valgrind --leak-check=yes --logfile-fd=3 -q $CURL";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
# variables the command line options may set
|
# variables the command line options may set
|
||||||
#
|
#
|
||||||
@ -1299,6 +1285,10 @@ do {
|
|||||||
# short output
|
# short output
|
||||||
$short=1;
|
$short=1;
|
||||||
}
|
}
|
||||||
|
elsif($ARGV[0] eq "-n") {
|
||||||
|
# no valgrind
|
||||||
|
undef $valgrind;
|
||||||
|
}
|
||||||
elsif($ARGV[0] =~ /^-t(.*)/) {
|
elsif($ARGV[0] =~ /^-t(.*)/) {
|
||||||
# torture
|
# torture
|
||||||
$torture=1;
|
$torture=1;
|
||||||
@ -1332,6 +1322,7 @@ Usage: runtests.pl [options]
|
|||||||
-h this help text
|
-h this help text
|
||||||
-k keep stdout and stderr files present after tests
|
-k keep stdout and stderr files present after tests
|
||||||
-l list all test case names/descriptions
|
-l list all test case names/descriptions
|
||||||
|
-n No valgrind
|
||||||
-s short output
|
-s short output
|
||||||
-t torture
|
-t torture
|
||||||
-v verbose output
|
-v verbose output
|
||||||
@ -1361,6 +1352,21 @@ if($testthis[0] ne "") {
|
|||||||
$TESTCASES=join(" ", @testthis);
|
$TESTCASES=join(" ", @testthis);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($valgrind) {
|
||||||
|
# we have found valgrind on the host, use it
|
||||||
|
|
||||||
|
# verify that we can invoke it fine
|
||||||
|
my $code = system("valgrind >/dev/null 2>&1");
|
||||||
|
|
||||||
|
if(($code>>8) != 1) {
|
||||||
|
#print "Valgrind failure, disable it\n";
|
||||||
|
undef $valgrind;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$CURL="valgrind --leak-check=yes --logfile-fd=3 -q $CURL";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
# Output curl version and host info being tested
|
# Output curl version and host info being tested
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user