Fix pg_basebackup test to original intent
authorPeter Eisentraut <peter_e@gmx.net>
Sun, 24 Sep 2017 02:59:26 +0000 (22:59 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Sun, 24 Sep 2017 03:03:28 +0000 (23:03 -0400)
commit7c8ce791d4b3e774ffe4c7c987a7055619663818
tree87aab4f4287679ab743db60d865f8b4600a8bf4c
parent3d7f11a0fabb038ce5c630b87dfadd8b625347fe
Fix pg_basebackup test to original intent

One test case was meant to check that pg_basebackup does not succeed
when a slot is specified with -S but WAL streaming is not selected,
which used to require specifying -X stream.  Since -X stream is the
default in PostgreSQL 10, this test case no longer covers that meaning,
but the pg_basebackup invocation happened to fail anyway for the
unrelated reason that the specified replication slot does not exist.  To
fix, move the test case to later in the file where the slot does exist,
and add -X none to the invocation so that it covers the originally meant
behavior.

extracted from a patch by Michael Banck <michael.banck@credativ.de>
src/bin/pg_basebackup/t/010_pg_basebackup.pl