mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-05 02:26:52 +02:00
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.
This commit is contained in:
parent
a15a40aaae
commit
bfa4263e71
@ -510,7 +510,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
|
||||
@ -522,10 +522,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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user