From 23c0608e288888e28fea030ee8ecf6b48411b59b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Fri, 17 Apr 2015 10:22:30 +0200 Subject: [PATCH] Fix bug in generate_code.pl The following did fail: Test 1 foo:SOME_CONSTANT:"string" Test 2 foo:OTHER_CONSTANT:"string" due to the first string actually including the second "foo" up to (but no including) the colon. --- tests/scripts/generate_code.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/scripts/generate_code.pl b/tests/scripts/generate_code.pl index 81c454cdb8..078e82df95 100755 --- a/tests/scripts/generate_code.pl +++ b/tests/scripts/generate_code.pl @@ -139,7 +139,7 @@ while($test_cases =~ /\/\* BEGIN_CASE *([\w:]*) \*\/\n(.*?)\n\/\* END_CASE \*\// $param_defs .= " char *param$i = params[$i];\n"; $param_checks .= " if( verify_string( ¶m$i ) != 0 ) return( 2 );\n"; push @dispatch_params, "param$i"; - $mapping_regex .= ":[^:]+"; + $mapping_regex .= ":[^:\n]+"; } else {