diff options
Diffstat (limited to 'src/test/modules')
-rw-r--r-- | src/test/modules/test_misc/t/005_timeouts.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/modules/test_misc/t/005_timeouts.pl b/src/test/modules/test_misc/t/005_timeouts.pl index 9e1ff9e5c1c..53e44016e3a 100644 --- a/src/test/modules/test_misc/t/005_timeouts.pl +++ b/src/test/modules/test_misc/t/005_timeouts.pl @@ -24,6 +24,18 @@ if ($ENV{enable_injection_points} ne 'yes') my $node = PostgreSQL::Test::Cluster->new('master'); $node->init(); $node->start; + +# Check if the extension injection_points is available, as it may be +# possible that this script is run with installcheck, where the module +# would not be installed by default. +my $result = $node->safe_psql('postgres', + "SELECT count(*) > 0 FROM pg_available_extensions WHERE name = 'injection_points';" +); +if ($result eq 'f') +{ + plan skip_all => 'Extension injection_points not installed'; +} + $node->safe_psql('postgres', 'CREATE EXTENSION injection_points;'); # |