diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2019-07-24 11:41:39 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2019-07-24 11:48:25 -0400 |
commit | 1357181d46249d211837e1df7a49ee1131027a99 (patch) | |
tree | 1c352a121e7b31eb6784d08984030b65135f0a06 /src | |
parent | 059e22693b2312cd091e5afe5800cedc6abd14b8 (diff) | |
download | postgresql-1357181d46249d211837e1df7a49ee1131027a99.tar.gz postgresql-1357181d46249d211837e1df7a49ee1131027a99.zip |
Don't assume expr is available in pgbench tests
Windows hosts do not normally come with expr, so instead of using that
to test the \setshell command, use echo instead, which is fairly
universally available.
Backpatch to release 11, where this came in.
Problem found by me, patch by Fabien Coelho.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pgbench/t/001_pgbench_with_server.pl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/pgbench/t/001_pgbench_with_server.pl b/src/bin/pgbench/t/001_pgbench_with_server.pl index 5b2d3de4ff2..3c099d768ff 100644 --- a/src/bin/pgbench/t/001_pgbench_with_server.pl +++ b/src/bin/pgbench/t/001_pgbench_with_server.pl @@ -514,7 +514,7 @@ pgbench( qr{processed: 1/1}, qr{shell-echo-output} ], - [qr{command=8.: int 2\b}], + [qr{command=8.: int 1\b}], 'pgbench backslash commands', { '001_pgbench_backslash_commands' => q{-- run set @@ -526,10 +526,10 @@ pgbench( \sleep 0 s \sleep :zero -- setshell and continuation -\setshell two\ - expr \ - 1 + :one -\set n debug(:two) +\setshell another_one\ + echo \ + :one +\set n debug(:another_one) -- shell \shell echo shell-echo-output } |