From: Arnaud Giersch Date: Tue, 9 Jul 2013 09:28:19 +0000 (+0200) Subject: Don't break when there are spaces between tesh file and closing parenthesis. X-Git-Tag: v3_9_90~182 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6ec5697bd6af0a76e4391d07c6ff81b131eefaea Don't break when there are spaces between tesh file and closing parenthesis. --- diff --git a/buildtools/Cmake/Scripts/generate_memcheck_tests.pl b/buildtools/Cmake/Scripts/generate_memcheck_tests.pl index 9b5a55ff0c..7b06561259 100755 --- a/buildtools/Cmake/Scripts/generate_memcheck_tests.pl +++ b/buildtools/Cmake/Scripts/generate_memcheck_tests.pl @@ -71,7 +71,7 @@ while ( defined( $line = ) ) { my ( $env_var, $value_var ) = ( $1, $2 ); $environ{$env_var} = $value_var; } - if ( $line =~ /(\S+)\)$/ ) { + if ( $line =~ /(\S+)\s*\)$/ ) { $tesh_file = $1; $tesh_file =~ s/^[^\/\$]/$path\/$&/; $tesh_file =~ s/\${CMAKE_HOME_DIRECTORY}/$proj_dir/g;