path: postgresql-common_290/t/020_create_sql_remove.t # verify that exactly one postgres master is running my @pm_pids = pidof ('postgres'); is $#pm_pids, 0, 'Exactly one postgres master process running'; path: postgresql-common_290/t/020_create_sql_remove.t 'cluster restarts with new environment file'; @pm_pids = pidof ('postgres'); is $#pm_pids, 0, 'Exactly one postgres master process running'; %env = pid_env 'postgres', $pm_pids[0]; path: postgresql-common_290/t/TestLib.pm # Return array of pids that match the given command name (we require a leading # slash so the postgres children are filtered out) sub pidof { my $prg = shift; open F, '-|', 'ps', 'h', '-C', $prg, '-o', 'pid,cmd' or die "open: $!"; path: postgresql-common_290/t/TestLib.pm our @EXPORT = qw/os_release ps ok_dir exec_as deb_installed rpm_installed package_version version_ge program_ok is_program_out like_program_out unlike_program_out pidof pid_env check_clean @ALL_MAJORS @MAJORS $delay/; path: postgresql-common_290/debian/changelog * t/TestLib.pm, check_clean(): Fix regexp for netstat port grepping so that ports like '54321' do not match. * t/TestLib.pm, pidof(): Make pidof() strict enough to not catch the stats collector and writer subprocesses. * t/*.t: Various small adaptions to work with 8.2, too.