[llvm-commits] CVS: nightlytest-serverside/NightlyTestAccept.php
Jim Laskey
jlaskey at apple.com
Thu Sep 14 04:34:47 PDT 2006
Changes in directory nightlytest-serverside:
NightlyTestAccept.php updated: 1.11 -> 1.12
---
Log message:
testing #10
---
Diffs of the changes: (+18 -16)
NightlyTestAccept.php | 34 ++++++++++++++++++----------------
1 files changed, 18 insertions(+), 16 deletions(-)
Index: nightlytest-serverside/NightlyTestAccept.php
diff -u nightlytest-serverside/NightlyTestAccept.php:1.11 nightlytest-serverside/NightlyTestAccept.php:1.12
--- nightlytest-serverside/NightlyTestAccept.php:1.11 Thu Sep 14 06:31:35 2006
+++ nightlytest-serverside/NightlyTestAccept.php Thu Sep 14 06:34:33 2006
@@ -121,23 +121,21 @@
*******************************************************************************/
function DoesMachineExist($uname, $hardware, $os, $name, $nickname, $gcc_version) {
$query = "SELECT * FROM machine WHERE uname=\"$uname\" AND nickname=\"$nickname\" AND gcc=\"$gcc_version\"";
-if ($print_debug) {
- print "query: $query\n";
-}
+print "query: $query\n";
- $machine_query = mysql_query($query);
- if (!$machine_query) {
- $error = mysql_error();
- print "mysql_error: $error\n";
- die;
- }
- $row = mysql_fetch_array($machine_query) or die(mysql_error());
- if (!$row) {
- $error = mysql_error();
- print "mysql_error: $error\n";
- die;
- }
- mysql_free_result($machine_query);
+$machine_query = mysql_query($query);
+if (!$machine_query) {
+ $error = mysql_error();
+ print "mysql_error: $error\n";
+ die;
+}
+$row = mysql_fetch_array($machine_query) or die(mysql_error());
+if (!$row) {
+ $error = mysql_error();
+ print "mysql_error: $error\n";
+ die;
+}
+mysql_free_result($machine_query);
// $machine_query = mysql_query($query) or die(mysql_error());
// $row = mysql_fetch_array($machine_query) or die(mysql_error());
@@ -648,6 +646,10 @@
* creating the response
*
*******************************************************************************/
+if ($print_debug) {
+ print "About To DoesMachineExist\n";
+}
+
if (!DoesMachineExist($uname, $hardware, $os, $name, $nickname, $gcc_version)) {
AddMachine($uname, $hardware, $os, $name, $nickname, $gcc_version, "test");
}
More information about the llvm-commits
mailing list