projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80b9e9c
)
Don't do pg_ctl logrotate test on Windows
author
Andrew Dunstan
<
[email protected]
>
Sun, 3 Mar 2019 23:19:44 +0000
(18:19 -0500)
committer
Andrew Dunstan
<
[email protected]
>
Sun, 3 Mar 2019 23:19:44 +0000
(18:19 -0500)
The test crashes and burns quite badly, for some reason, but even if it
didn't it wouldn't work, since Windows doesn't let you rename a file
held by a running process.
src/bin/pg_ctl/t/004_logrotate.pl
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_ctl/t/004_logrotate.pl
b/src/bin/pg_ctl/t/004_logrotate.pl
index fa5ab748177360d82087349912ff42559ed0e43a..184728bdb361e2b6daf15e059b67751467dc457d 100644
(file)
--- a/
src/bin/pg_ctl/t/004_logrotate.pl
+++ b/
src/bin/pg_ctl/t/004_logrotate.pl
@@
-6,6
+6,17
@@
use TestLib;
use Test::More tests => 1;
use Time::HiRes qw(usleep);
+if ($windows_os)
+{
+ plan skip_all => 'logrotate test not supported on Windows';
+ exit;
+}
+else
+{
+ plan tests => 1;
+}
+
+
my $tempdir = TestLib::tempdir;
my $node = get_new_node('primary');