summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2005-01-05 13:26:35 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2005-01-05 13:26:35 +0000
commit0f9a6442b453793d80f274a96822cb9d7c54d949 (patch)
tree8755d78f24f009c3b1524a68de3e98a31e566391 /bin
parent2c38fe86127d33dcdfc9d2d27af1c25eccc208a9 (diff)
downloadATCD-0f9a6442b453793d80f274a96822cb9d7c54d949.tar.gz
ChangeLogTag: Wed Jan 5 13:21:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fuzz.pl15
1 files changed, 8 insertions, 7 deletions
diff --git a/bin/fuzz.pl b/bin/fuzz.pl
index d61b3ca499c..5ed6cb93d5e 100755
--- a/bin/fuzz.pl
+++ b/bin/fuzz.pl
@@ -496,20 +496,21 @@ sub check_for_empty_inline_files ()
{
print "Running empty inline files test\n";
foreach $file (@files_inl) {
- my $found = 0;
- my $ignore = 0;
+ my $found_non_empty_line = 0;
+ my $idl_generated = 0;
if (open (FILE, $file)) {
print "Looking at file $file\n" if $opt_d;
while (<FILE>) {
- if (/\/\/ TAO and the TAO IDL Compiler have been developed by/) {# skip IDL generated files
- $ignore = 1;
- next;}
+ if (m/TAO and the TAO IDL Compiler have been developed by/) {# skip IDL generated files
+ $idl_generated = 1;
+ last;}
next if /^[:blank:]*$/; # skip empty lines
next if /^[:blank:]*\/\//; # skip C++ comments
- $found = 1;
+ $found_non_empty_line = 1;
+ last;
}
close (FILE);
- if ($found == 0 and $ignore == 0) {
+ if ($found_non_empty_line == 0 and $idl_generated == 0) {
print_error ("File $file is empty and should not be in the "
."repository");
}