Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixes to return value in testutil

  • Loading branch information...
commit 86454eaf46b1dd90c17779529d58261be75d75e7 1 parent 34a62ba
groys authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 test/testutil.php
View
7 test/testutil.php
@@ -69,8 +69,8 @@ function scribe_stop($scribe_ctrl_path, $port, $pid = 0) {
system($command, $error);
echo "$command => $error\n";
- if ($error === false) {
- return false;
+ if ($error == 0) {
+ return true;
}
sleep($wait);
@@ -80,7 +80,8 @@ function scribe_stop($scribe_ctrl_path, $port, $pid = 0) {
system('kill -9 ' . $pid, $success);
echo "kill -9 $pid => $success\n";
- if ($success === false) {
+ // If the kill failed
+ if ($success == -1 ) {
print("ERROR: scribed did not stop after $wait seconds.\n");
return false;
}
Please sign in to comment.
Something went wrong with that request. Please try again.