commit | c1d2eb3fd692810d782916af66f457369ffb12c2 | [log] [tgz] |
---|---|---|
author | SimonB <simonb@redtangent.net> | Mon May 02 15:52:52 2016 +0100 |
committer | Simon Butcher <simon.butcher@arm.com> | Thu May 05 14:25:03 2016 +0100 |
tree | 507107b6f252cf5e3116f899168d93e440457905 | |
parent | 42256118870538bb48d2cadeb16c787a528fe570 [diff] [blame] |
Adds line number substitution in test cases Expanded generate_code.pl to substitute !LINE_NO! in test cases.
diff --git a/tests/scripts/generate_code.pl b/tests/scripts/generate_code.pl index 93c003b..9c59591 100755 --- a/tests/scripts/generate_code.pl +++ b/tests/scripts/generate_code.pl
@@ -95,6 +95,8 @@ $line = $line."#line $index \"$test_case_file\"\n"; } + $line =~ s/!LINE_NO!/$index/; + $test_cases = $test_cases.$line; $index++; }