use Test::More;
use Config;
-plan tests => 9;
+if ($Config{osname} eq 'MSWin32')
+{
+ plan skip_all => 'tests hang on Windows';
+ exit;
+}
+else
+{
+ plan tests => 9;
+}
# To avoid hanging while expecting some specific input from a psql
my $ret = TestLib::system_log('pg_ctl', 'kill', 'KILL', $pid);
is($ret, 0, 'killed process with KILL');
-# Explicitly shut down psql gracefully - to avoid hangs or worse on windows
-$killme_stdin .= "\\q\n";
+# Close psql session
$killme->finish;
-$killme_stdin2 .= "\\q\n";
$killme2->finish;
# Wait till server restarts
$ret = TestLib::system_log('pg_ctl', 'kill', 'KILL', $pid);
is($ret, 0, 'killed process with KILL');
-# Explicitly shut down psql gracefully - to avoid hangs or worse on windows
-$killme_stdin .= "\\q\n";
+# Close psql session
$killme->finish;
-$killme_stdin2 .= "\\q\n";
$killme2->finish;
# Wait till server restarts