[llvm-commits] CVS: nightlytest-serverside/NightlyTestAccept.cgi

Patrick Jenkins pjenkins at apple.com
Wed Aug 2 11:16:31 PDT 2006



Changes in directory nightlytest-serverside:

NightlyTestAccept.cgi updated: 1.39 -> 1.40
---
Log message:

Added a check to see if the dejagnu output includes unexpected failures, expected failures, and expected passes. Evidently if there was no unexpected failures it would not print out 0, it would just print out nothing. Now we will capture this and record it as 0.



---
Diffs of the changes:  (+14 -6)

 NightlyTestAccept.cgi |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)


Index: nightlytest-serverside/NightlyTestAccept.cgi
diff -u nightlytest-serverside/NightlyTestAccept.cgi:1.39 nightlytest-serverside/NightlyTestAccept.cgi:1.40
--- nightlytest-serverside/NightlyTestAccept.cgi:1.39	Tue Aug  1 12:26:33 2006
+++ nightlytest-serverside/NightlyTestAccept.cgi	Wed Aug  2 13:16:15 2006
@@ -509,12 +509,20 @@
 ################################################################################
 print "content-type: text/text\r\n\r\n";
 
-$dejagnutests_log =~ m/\# of expected passes\s*([0-9]+)/;
-$dejagnu_exp_passes=$1;
-$dejagnutests_log =~ m/unexpected failures\s*([0-9]+)/;
-$dejagnu_unexp_failures=$1;
-$dejagnutests_log =~ m/\# of expected failures\s*([0-9]+)/;
-$dejagnu_exp_failures=$1;
+my $dejagnu_exp_passes=0;
+if( ($dejagnutests_log =~ m/\# of expected passes\s*([0-9]+)/) ){
+  $dejagnu_exp_passes=$1;
+}
+
+my $dejagnu_unexp_failures=0;
+if( ($dejagnutests_log =~ m/unexpected failures\s*([0-9]+)/) ){
+  $dejagnu_unexp_failures=$1;
+}
+
+my $dejagnu_exp_failures=0;
+if( ($dejagnutests_log =~ m/\# of expected failures\s*([0-9]+)/) ){
+  $dejagnu_exp_failures=$1;
+}
 
 ################################################################################
 #






More information about the llvm-commits mailing list