diff options
| author | Noah Misch <noah@leadboat.com> | 2015-09-03 00:29:11 -0400 |
|---|---|---|
| committer | Noah Misch <noah@leadboat.com> | 2015-09-03 00:29:11 -0400 |
| commit | 7d7a103f41fbdc54e608c431ead866061289307d (patch) | |
| tree | 46d8c7e7a03765d5f3cda4474fe4a8c2421f7e0a /src/bin/pg_ctl | |
| parent | a09009e4278439f99d03adfefe2eec72ca35dcc3 (diff) | |
Disable fsync throughout TAP test suites.
Most suites already did so via start_test_server(), but the pg_rewind,
pg_ctl and pg_controldata suites ran a postmaster or initdb with fsync
enabled. This halves the pg_rewind suite's runtime on buildfarm member
tern. It makes tern and that machine's other buildfarm members less
vulnerable to noise failures from postmaster startup overrunning the 60s
pg_ctl timeout. Back-patch to 9.5, where pg_rewind was introduced.
Diffstat (limited to 'src/bin/pg_ctl')
| -rw-r--r-- | src/bin/pg_ctl/t/001_start_stop.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/pg_ctl/t/001_start_stop.pl b/src/bin/pg_ctl/t/001_start_stop.pl index dae47a80135..177a16f7afe 100644 --- a/src/bin/pg_ctl/t/001_start_stop.pl +++ b/src/bin/pg_ctl/t/001_start_stop.pl @@ -14,12 +14,14 @@ program_options_handling_ok('pg_ctl'); command_exit_is([ 'pg_ctl', 'start', '-D', "$tempdir/nonexistent" ], 1, 'pg_ctl start with nonexistent directory'); -command_ok([ 'pg_ctl', 'initdb', '-D', "$tempdir/data" ], 'pg_ctl initdb'); +command_ok([ 'pg_ctl', 'initdb', '-D', "$tempdir/data", '-o', '-N' ], + 'pg_ctl initdb'); command_ok( [ $ENV{PG_REGRESS}, '--config-auth', "$tempdir/data" ], 'configure authentication'); open CONF, ">>$tempdir/data/postgresql.conf"; +print CONF "fsync = off\n"; if (! $windows_os) { print CONF "listen_addresses = ''\n"; |
