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.
This commit is contained in:
Manuel Pégourié-Gonnard 2015-04-17 10:22:30 +02:00
parent ba334201a9
commit 23c0608e28

View file

@ -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( &param$i ) != 0 ) return( 2 );\n";
push @dispatch_params, "param$i";
$mapping_regex .= ":[^:]+";
$mapping_regex .= ":[^:\n]+";
}
else
{