diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2019-03-03 18:19:44 -0500 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2019-03-03 18:19:44 -0500 |
commit | d611175e531b9e09f2f497d7338fff73dd8f2c49 (patch) | |
tree | 6c72e1448ad2a834a4723de1ccfb8482bfe0ba9e /src/bin/pg_ctl | |
parent | 80b9e9c4664a020ebd14889046bd8d22a17d1ca6 (diff) | |
download | postgresql-d611175e531b9e09f2f497d7338fff73dd8f2c49.tar.gz |
Don't do pg_ctl logrotate test on Windows
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.
Diffstat (limited to 'src/bin/pg_ctl')
-rw-r--r-- | src/bin/pg_ctl/t/004_logrotate.pl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/bin/pg_ctl/t/004_logrotate.pl b/src/bin/pg_ctl/t/004_logrotate.pl index fa5ab74817..184728bdb3 100644 --- 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'); |