[llvm-commits] CVS: nightlytest-serverside/ProgramResults.php
Jim Laskey
jlaskey at apple.com
Tue Sep 19 15:07:47 PDT 2006
Changes in directory nightlytest-serverside:
ProgramResults.php updated: 1.81 -> 1.82
---
Log message:
One more attempt at getting it right
---
Diffs of the changes: (+5 -10)
ProgramResults.php | 15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)
Index: nightlytest-serverside/ProgramResults.php
diff -u nightlytest-serverside/ProgramResults.php:1.81 nightlytest-serverside/ProgramResults.php:1.82
--- nightlytest-serverside/ProgramResults.php:1.81 Sun Sep 17 04:58:16 2006
+++ nightlytest-serverside/ProgramResults.php Tue Sep 19 17:07:32 2006
@@ -609,13 +609,8 @@
while ($row = mysql_fetch_assoc($program_query)) {
$program = trimTestPath($row['program']);
$measure = strtoupper($row['measure']);
- $result = $test_hash[$program];
- if (isset($result)) {
- $result .= ", " . $measure;
- } else {
- $result = $measure;
- }
- $test_hash[$program] = $result;
+ $key = "$program [$measure]";
+ $test_hash[$key] = true;
}
mysql_free_result($program_query);
return $test_hash;
@@ -634,9 +629,9 @@
while ($row = mysql_fetch_assoc($program_query)) {
$program = trimTestPath($row['program']);
$measure = strtoupper($row['measure']);
- $result = $test_hash[$program];
- if (strpos("$result", $measure) !== false) {
- $passing .= "$program [$measure]\n";
+ $key = "$program [$measure]";
+ if (isset($test_hash[$key])) {
+ $passing .= "$key\n";
}
}
mysql_free_result($program_query);
More information about the llvm-commits
mailing list