|
From: Peter O. <obe...@us...> - 2014-04-14 11:24:07
|
Update of /cvsroot/ltp/utils/analysis/lcov/bin In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv9000 Modified Files: genhtml Log Message: genhtml: Check for proper description file format Ensure that description files contain test name lines before test description lines. This fixes a "use of uninitialized value" warning in genhtml. Signed-off-by: Peter Oberparleiter <ob...@li...> Index: genhtml =================================================================== RCS file: /cvsroot/ltp/utils/analysis/lcov/bin/genhtml,v retrieving revision 1.77 retrieving revision 1.78 diff -C2 -d -r1.77 -r1.78 *** genhtml 8 Jan 2014 13:26:04 -0000 1.77 --- genhtml 14 Apr 2014 11:24:05 -0000 1.78 *************** *** 2522,2525 **** --- 2522,2528 ---- if (/^TD:\s+(.*?)\s*$/) { + if (!defined($test_name)) { + die("ERROR: Found test description without prior test name in $_[0]:$.\n"); + } # Check for empty line if ($1) |