This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][benchtests] Skip over blank lines in the input file


Hi,

I just noticed that the input file breaks on blank lines.  The patch
below fixes it.  OK to commit?

Siddhesh

	* scripts/bench.pl: Skip over blank lines.

diff --git a/scripts/bench.pl b/scripts/bench.pl
index 7eb1525..90441e1 100755
--- a/scripts/bench.pl
+++ b/scripts/bench.pl
@@ -83,8 +83,8 @@ LINE:while (<INPUTS>) {
     }
   }
 
-  # Skip over comments.
-  if (/^#/) {
+  # Skip over comments and blank lines.
+  if (/^#/ || /^$/) {
     next LINE;
   }
   push (@curvals, $_);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]