#If you use the --read-var-info option Memcheck will run more slowly but may give a more detailed description of any illegal address.
if(WIN32)
-SET(TESH_COMMAND perl.exe ${CMAKE_BINARY_DIR}/bin/tesh)
+SET(TESH_COMMAND perl.exe ${CMAKE_BINARY_DIR}/bin/tesh --timeout 50)
else()
SET(TESH_COMMAND ${CMAKE_BINARY_DIR}/bin/tesh)
endif()
=cut
my($bindir)=".";
my($srcdir)=".";
+my($timeout)=0;
my $path = $0;
my $OS;
$path =~ s|[^/]*$||;
}
}
+sub timeout_cmd{
+ $timeout=$_[1];
+}
+
sub setenv_cmd {
my($var,$ctn);
if ($_[0] =~ /^(.*)=(.*)$/) {
'debug|d' => \$opt{"debug"},
'cd=s' => \&cd_cmd,
+ 'timeout=s' => \&timeout_cmd,
'setenv=s' => \&setenv_cmd,
'cfg=s' => \@cfg,
'log=s' => \$log,
##
my($sort)=0;
my($nb_arg)=0;
-my($timeout)=0;
my($old_buffer);
my($linebis);
my($SIGABRT)=0;