minor changes

This commit is contained in:
sparc 2006-12-19 08:52:37 +00:00
parent 34e4f4d9af
commit 2a1392fffb

View file

@ -106,23 +106,30 @@ foreach ($domains as $key => $domain)
// Add as it is
$results[$domain] = $result;
}
else
break;
}
else
echo "Handler for domain $domain gives same results as before ...\n";
}
}
save_results();
//--------------------------------------------------------------------------
function save_results()
{
global $results;
$fp = fopen('testsuite.txt','wt');
fputs($fp, serialize($results));
fclose($fp);
}
//--------------------------------------------------------------------------
function get_answer($question)
{
echo "\n------ $question ? (y/n/a) ";
echo "\n------ $question ? (y/n/a/c) ";
while (true)
{
@ -130,6 +137,11 @@ while (true)
if ($res=='a') exit();
if ($res=='c')
{
save_results();
exit();
}
if ($res=='y') return true;
if ($res=='n') return false;
}