[llvm-commits] CVS: nightlytest-serverside/ProgramResults.php

Reid Spencer reid at x10sys.com
Fri Nov 24 23:21:25 PST 2006



Changes in directory nightlytest-serverside:

ProgramResults.php updated: 1.101 -> 1.102
---
Log message:

Don't fill up the server log with offset warnings, check them first.


---
Diffs of the changes:  (+8 -3)

 ProgramResults.php |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)


Index: nightlytest-serverside/ProgramResults.php
diff -u nightlytest-serverside/ProgramResults.php:1.101 nightlytest-serverside/ProgramResults.php:1.102
--- nightlytest-serverside/ProgramResults.php:1.101	Tue Nov  7 14:00:07 2006
+++ nightlytest-serverside/ProgramResults.php	Sat Nov 25 01:21:04 2006
@@ -426,9 +426,14 @@
  * Trim test path to exclude redundant info.
  */
 function trimTestPath($program) {
-  list($head, $tail) = split("/llvm/test/", $program);
-  if (isset($tail)) {
-    $program = "test/" . $tail;
+  $parts = split("llvm/test/", $program);
+  if ($parts != FALSE) {
+    if (count($parts) >= 2) {
+      $tail = $x[1];
+      if (isset($tail)) {
+        $program = "test/" . $tail;
+      }
+    }
   }
   return rtrim($program, ": ");;
 }






More information about the llvm-commits mailing list