]> granicus.if.org Git - postgresql/commit
Don't assume expr is available in pgbench tests
authorAndrew Dunstan <andrew@dunslane.net>
Wed, 24 Jul 2019 15:41:39 +0000 (11:41 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Wed, 24 Jul 2019 15:47:58 +0000 (11:47 -0400)
commitbfa4263e7119685cddb08ed2e2b3462157d4d453
tree0c14360adf8c38bd9d290989f9234a170a853715
parenta15a40aaaedfa01f41471f74aa8ac44168603fb9
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.
src/bin/pgbench/t/001_pgbench_with_server.pl