A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
As we don't have thread contexts everywhere (windows, for now), don't execute tests...
[simgrid.git]
/
tools
/
cmake
/
scripts
/
generate_memcheck_tests.pl
diff --git
a/tools/cmake/scripts/generate_memcheck_tests.pl
b/tools/cmake/scripts/generate_memcheck_tests.pl
index
f57f8a2
..
e3fa468
100755
(executable)
--- a/
tools/cmake/scripts/generate_memcheck_tests.pl
+++ b/
tools/cmake/scripts/generate_memcheck_tests.pl
@@
-140,7
+140,7
@@
while ( defined( $line = <MAKETEST> ) ) {
}
if ( $command =~ /^mkfile\s+(\S+)/) {
my $file = $1;
}
if ( $command =~ /^mkfile\s+(\S+)/) {
my $file = $1;
- # don't ask me
to explain why so many backslashes...
+ # don't ask me
why so many backslashes. http://xkcd.com/1638/
$input =~ s/\\/\\\\\\\\/g;
$input =~ s/\n/\\\\n/g;
$input =~ s/"/\\\\042/g;
$input =~ s/\\/\\\\\\\\/g;
$input =~ s/\n/\\\\n/g;
$input =~ s/"/\\\\042/g;
@@
-160,6
+160,9
@@
while ( defined( $line = <MAKETEST> ) ) {
}elsif( $factory =~ /^ucontext/) {
print "${indent}if(CONTEXT_UCONTEXT)\n";
$close=1;
}elsif( $factory =~ /^ucontext/) {
print "${indent}if(CONTEXT_UCONTEXT)\n";
$close=1;
+ }elsif( $factory =~ /^thread/) {
+ print "${indent}if(CONTEXT_THREADS)\n";
+ $close=1;
}
print "${indent}ADD_TEST(NAME memcheck-$name_test-$factory-$count\n";
print "${indent} WORKING_DIRECTORY $path\/\n";
}
print "${indent}ADD_TEST(NAME memcheck-$name_test-$factory-$count\n";
print "${indent} WORKING_DIRECTORY $path\/\n";