mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	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.
This commit is contained in:
		@@ -6,6 +6,17 @@ use TestLib;
 | 
				
			|||||||
use Test::More tests => 1;
 | 
					use Test::More tests => 1;
 | 
				
			||||||
use Time::HiRes qw(usleep);
 | 
					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 $tempdir = TestLib::tempdir;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
my $node = get_new_node('primary');
 | 
					my $node = get_new_node('primary');
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user