Commit a1bc4c86 authored by wurblzap%gmail.com's avatar wurblzap%gmail.com

Bug 481025 - Remove rogue Byte Order Mark.

Patch by Marc Schumann <wurblzap@gmail.com>; r/a=mkanat
parent 57886cce
......@@ -36,7 +36,7 @@ use Support::Templates;
use File::Spec;
use Test::More tests => ( scalar(@Support::Files::testitems)
+ $Support::Templates::num_actual_files) * 2;
+ $Support::Templates::num_actual_files) * 3;
my @testitems = @Support::Files::testitems;
for my $path (@Support::Templates::include_paths) {
......@@ -68,4 +68,15 @@ foreach my $file (@testitems) {
close (FILE);
}
foreach my $file (@testitems) {
open (FILE, "$file");
my $first_line = <FILE>;
if ($first_line =~ /\xef\xbb\xbf/) {
ok(0, "$file contains Byte Order Mark --WARNING");
} else {
ok(1, "$file is free of a Byte Order Mark");
}
close (FILE);
}
exit 0;
[%# The contents of this file are subject to the Mozilla Public
[%# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment