From: Augustin Degomme Date: Fri, 4 Oct 2013 13:09:49 +0000 (+0200) Subject: empty lines made win unhappy X-Git-Tag: v3_9_90~40^2~33 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c2ae0672c24f56b98d90669258562546f382e62b empty lines made win unhappy --- diff --git a/buildtools/Cmake/Scripts/tesh.pl b/buildtools/Cmake/Scripts/tesh.pl index e2c97235e2..c4d9722165 100755 --- a/buildtools/Cmake/Scripts/tesh.pl +++ b/buildtools/Cmake/Scripts/tesh.pl @@ -270,7 +270,7 @@ sub exec_cmd { $got =~ s/\r//g; $got =~ s/^( )*//g; chomp $got; - $got=trim($got); + $got=trim($got); if( $got ne ""){ if (!($enable_coverage and $got=~ /^profiling:/)){ push @got, "$got"; @@ -392,6 +392,9 @@ 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