Raised to critical the categories: armcc_cannot_open_source_input_file, mwccsym2_file_cannot_be_opened, cpp_exe_no_such_file_or_directory
authorDario Sestito <darios@symbian.org>
Fri, 28 May 2010 15:41:53 +0100
changeset 272 06db82e8efc6
parent 271 b20b2eae00e9
child 273 859eb1addb02
Raised to critical the categories: armcc_cannot_open_source_input_file, mwccsym2_file_cannot_be_opened, cpp_exe_no_such_file_or_directory
uh_parser/RaptorError.pm
uh_parser/RaptorRecipe.pm
--- a/uh_parser/RaptorError.pm	Thu May 27 14:19:36 2010 +0100
+++ b/uh_parser/RaptorError.pm	Fri May 28 15:41:53 2010 +0100
@@ -127,7 +127,7 @@
 	}
 	elsif ($text =~ m,win32/mingw/bin/cpp\.exe:.*:.*: No such file or directory,)
 	{
-		$severity = $RaptorCommon::SEVERITY_MAJOR;
+		$severity = $RaptorCommon::SEVERITY_CRITICAL;
 		$subcategory = $CATEGORY_RAPTORERROR_CPPEXENOSUCHFILEORDIRECTORY;
 		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file);
 	}
--- a/uh_parser/RaptorRecipe.pm	Thu May 27 14:19:36 2010 +0100
+++ b/uh_parser/RaptorRecipe.pm	Fri May 28 15:41:53 2010 +0100
@@ -101,6 +101,9 @@
 	if ($text =~ m,Error:  #5: cannot open source input file .*: No such file or directory,)
 	{
 		my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_CANNOTOPENSOURCEINPUTFILE;
+		# set severity as critical,
+		# but leave alone failures which are minor (for the chronological rule)  
+		$severity = $RaptorCommon::SEVERITY_CRITICAL if ($severity eq $RaptorCommon::SEVERITY_MAJOR);
 		RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file);
 	}
 	elsif ($text =~ m,Fatal error: L6002U: Could not open file .*: No such file or directory,)
@@ -168,6 +171,9 @@
 	elsif ($text =~ m,mwccsym2.exe , and $text =~ m,: the file '.*' cannot be opened,)
 	{
 		my $subcategory = $CATEGORY_RECIPEFAILURE_MWCCSYM2_FILECANNOTBEOPENED;
+		# set severity as critical,
+		# but leave alone failures which are minor (for the chronological rule)  
+		$severity = $RaptorCommon::SEVERITY_CRITICAL if ($severity eq $RaptorCommon::SEVERITY_MAJOR);
 		RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file);
 	}
 	elsif ($text =~ m,mwldsym2\.exe: Undefined symbol: '.*',)