Daniel (24 August 2005)
+- (Trying hard to exclude emotions now.) valgrind version 3 suddenly renamed
+ the --logfile command line option to --log-file, and thus the test script
+ valgrind autodetection now has yet another version check to do and then it
+ alters the valgrind command line accordingly.
+
- Fixed CA cert verification using GnuTLS with the default bundle, which
previously failed due to GnuTLS not allowing x509 v1 CA certs by default.
This release includes the following bugfixes:
+ o test suite works with valgrind 3
o CA cert verification with GnuTLS builds
o handles expiry times in cookie files that go beyond 32 bits in size
o several client problems with files, such as doing -d @file when the file
my $stunnel = checkcmd("stunnel");
my $valgrind = checkcmd("valgrind");
+my $valgrind_logfile="--logfile";
my $start;
my $valgrind_tool;
$valgrind=0;
}
close(C);
+
+ # valgrind 3 renamed the --logfile option to --log-file!!!
+ my $ver=`valgrind --version`;
+ # cut off all but digits and dots
+ $ver =~ s/[^0-9.]//g;
+
+ if($ver >= 3) {
+ $valgrind_logfile="--log-file";
+ }
}
my $gdb = checkcmd("gdb");
}
if($valgrind) {
- $CMDLINE = "valgrind ".$valgrind_tool."--leak-check=yes --num-callers=16 --logfile=log/valgrind$testnum $CMDLINE";
+ $CMDLINE = "valgrind ".$valgrind_tool."--leak-check=yes --num-callers=16 ${valgrind_logfile}=log/valgrind$testnum $CMDLINE";
}
$CMDLINE .= "$cmdargs >>$STDOUT 2>>$STDERR";