diff options
author | maksymsproductengine <maksymsproductengine@lindenlab.com> | 2013-09-10 20:17:43 +0300 |
---|---|---|
committer | maksymsproductengine <maksymsproductengine@lindenlab.com> | 2013-09-10 20:17:43 +0300 |
commit | 8a0b7eaaddf9170db5f205d94f680915da13239c (patch) | |
tree | 7b2028fa1bbb4fa64adcc4a1298952465cd87539 /scripts | |
parent | d995782edf1a55c327ad3f3349bd9d4b6ec3d9e6 (diff) | |
parent | e2019e8a3b5175eb6d7322fbe7c466f213854640 (diff) |
Merge for MAINT-3117
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gpu_table_tester | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/gpu_table_tester b/scripts/gpu_table_tester index 9bc958636d..0fe3e9e8f7 100755 --- a/scripts/gpu_table_tester +++ b/scripts/gpu_table_tester @@ -73,6 +73,10 @@ die "Must specify a --gpu-table <gpu_table.txt> value" open(GPUS, "<$GpuTable") || die "Failed to open gpu table '$GpuTable':\n\t$!\n"; +my $FirstLine = <GPUS>; +die "First line of gpu table does not begin with '//GPU_TABLE'" + unless $FirstLine =~ m|^//GPU_TABLE|; + # Parse the GPU table into these tables, indexed by the name my %NameLine; # name -> line number on which a given name was found (catches duplicate names) my %RecognizerLine; # name -> line number on which a given name was found (catches duplicate names) |