commit | ab071351657182a8593121337e6e89f5e78cc5a9 | [log] [tgz] |
---|---|---|
author | SimonB <simonb@redtangent.net> | Mon May 02 15:52:52 2016 +0100 |
committer | Simon Butcher <simon.butcher@arm.com> | Mon May 23 14:29:29 2016 +0100 |
tree | 869d62a148bd49490aaf1a5d4908339fb3e40b6d | |
parent | 99cff58958dce75c7d4c24093230ed34de101bf4 [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++; }