X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c2ae0672c24f56b98d90669258562546f382e62b..13f90ceef903494ac13d9cb2f27d7e636f3fb1c6:/buildtools/Cmake/Scripts/tesh.pl diff --git a/buildtools/Cmake/Scripts/tesh.pl b/buildtools/Cmake/Scripts/tesh.pl index c4d9722165..d74a6d554b 100755 --- a/buildtools/Cmake/Scripts/tesh.pl +++ b/buildtools/Cmake/Scripts/tesh.pl @@ -392,9 +392,6 @@ LINE: while (not $finished and not $error) { $line_num++; chomp $line; - if($line!=~/\s/){ - next LINE; - } print "[TESH/debug] $line_num: $line\n" if $opts{'debug'}; my $next; # deal with line continuations @@ -409,7 +406,7 @@ LINE: while (not $finished and not $error) { } # Push delayed commands on empty lines - unless ($line =~ m/^(.)\s*(.*)$/) { + unless ($line =~ m/^(.).(.*)$/) { if (defined($cmd{'cmd'})) { exec_cmd(\%cmd); %cmd = (); @@ -534,6 +531,11 @@ LINE: while (not $finished and not $error) { } else { die "[TESH/CRITICAL] parse error: $line\n"; } + if($forked){ + kill(9, $forked); + $timeout=0; + } + }