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
There was too much levels of backslash escapes. Remove one of them.
[simgrid.git]
/
buildtools
/
Cmake
/
Scripts
/
generate_memcheck_tests.pl
diff --git
a/buildtools/Cmake/Scripts/generate_memcheck_tests.pl
b/buildtools/Cmake/Scripts/generate_memcheck_tests.pl
index
1abc07c
..
421bbe5
100755
(executable)
--- a/
buildtools/Cmake/Scripts/generate_memcheck_tests.pl
+++ b/
buildtools/Cmake/Scripts/generate_memcheck_tests.pl
@@
-139,10
+139,10
@@
while ( defined( $line = <MAKETEST> ) ) {
if ( $command =~ /^mkfile\s+(\S+)/) {
my $file = $1;
# don't ask me to explain why so many backslashes...
if ( $command =~ /^mkfile\s+(\S+)/) {
my $file = $1;
# don't ask me to explain why so many backslashes...
- $input =~ s/\\/\\\\\\\\
\\\\\\\\
/g;
- $input =~ s/\n/\\\\
\\\\
n/g;
- $input =~ s/"/\\\\
\\\\
042/g;
- $input =~ s/'/\\\\
\\\\
047/g;
+ $input =~ s/\\/\\\\\\\\/g;
+ $input =~ s/\n/\\\\n/g;
+ $input =~ s/"/\\\\042/g;
+ $input =~ s/'/\\\\047/g;
$input =~ s/%/%%/g;
$command = "sh -c \"printf '$input' > $file\"";
}
$input =~ s/%/%%/g;
$command = "sh -c \"printf '$input' > $file\"";
}