From 0dcd4a1d2441249d190b5300249b587a5762bb7f Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 5 May 2014 14:17:31 +0200 Subject: [PATCH] There was too much levels of backslash escapes. Remove one of them. It seems that it changed with commit 782233, when the add_test statements were changed from add_test(testname exe arg...) to add_test(NAME testname COMMAND exe arg...). This broke test memcheck-smpi-replay-9. --- buildtools/Cmake/Scripts/generate_memcheck_tests.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/buildtools/Cmake/Scripts/generate_memcheck_tests.pl b/buildtools/Cmake/Scripts/generate_memcheck_tests.pl index 1abc07c8ca..421bbe5978 100755 --- a/buildtools/Cmake/Scripts/generate_memcheck_tests.pl +++ b/buildtools/Cmake/Scripts/generate_memcheck_tests.pl @@ -139,10 +139,10 @@ while ( defined( $line = ) ) { 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\""; } -- 2.20.1