Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1357181

Browse files
committed
Don't assume expr is available in pgbench tests
Windows hosts do not normally come with expr, so instead of using thatto test the \setshell command, use echo instead, which is fairlyuniversally available.Backpatch to release 11, where this came in.Problem found by me, patch by Fabien Coelho.
1 parent059e226 commit1357181

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/bin/pgbench/t/001_pgbench_with_server.pl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ sub pgbench
514514
qr{processed: 1/1},
515515
qr{shell-echo-output}
516516
],
517-
[qr{command=8.: int2\b}],
517+
[qr{command=8.: int1\b}],
518518
'pgbench backslash commands',
519519
{
520520
'001_pgbench_backslash_commands'=>q{-- run set
@@ -526,10 +526,10 @@ sub pgbench
526526
\sleep 0 s
527527
\sleep :zero
528528
-- setshell and continuation
529-
\setshelltwo\
530-
expr \
531-
1 +:one
532-
\set n debug(:two)
529+
\setshellanother_one\
530+
echo \
531+
:one
532+
\set n debug(:another_one)
533533
-- shell
534534
\shell echo shell-echo-output
535535
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp