Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Always skip recovery SysV shared memory tests on Windows
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 6 Sep 2019 19:47:23 +0000 (15:47 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 6 Sep 2019 19:50:53 +0000 (15:50 -0400)
The test for SysV support currently involves looking for the perl
modules IPC::SharedMem and IPC::SysV. However, the perl on msys2 has
these modules but the tests fail. Therefore, force skipping the tests on
Windows platforms unconditionally.

Discussion: https://postgr.es/m/176e86ba-1a46-9d8c-5ae4-9865a463b411@2ndQuadrant.com

src/test/recovery/t/017_shm.pl

index a29ef788551896a25b6bb06484b3ed12a165f87d..dc0dcd3ca275a9017fe7ffa9e41d2782e35344f0 100644 (file)
@@ -18,7 +18,7 @@ eval {
    require IPC::SysV;
    IPC::SysV->import(qw(IPC_CREAT IPC_EXCL S_IRUSR S_IWUSR));
 };
-if ($@)
+if ($@ || $windows_os)
 {
    plan skip_all => 'SysV shared memory not supported by this platform';
 }