]> AND Public Git Repository - simgrid.git/blobdiff - buildtools/Cmake/Scripts/generate_memcheck_tests.pl
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
There is no reason to trim the output in tesh.pl too.
[simgrid.git] / buildtools / Cmake / Scripts / generate_memcheck_tests.pl
index 33fd3bb01a045cfdf47801d14993543927595ff0..df0880674fe3bfbc68cd98cab184ec8f67908d92 100755 (executable)
@@ -38,7 +38,6 @@ my ($indent);
 while ( defined( $line = <MAKETEST> ) ) {
     chomp $line;
     if ( $line =~ /BEGIN TESH TESTS/ ) {
-        print "SET( MEMCHECK 1) \n";
         $dump = 1;
         next;
     }
@@ -48,7 +47,7 @@ while ( defined( $line = <MAKETEST> ) ) {
     }
     if ($dump) {
         $line =~ s/^  //;
-        if ( $line =~ /^\s*ADD_TEST\(\S+\s+\S*\/tesh\s/ ) {
+        if ( $line =~ /^\s*ADD_TEST\(\S+\s+\S*TESH\_COMMAND\}\s/ ) {
             undef %environ;
             $config_var = "";
             $path       = "";