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

Commitafd532c

Browse files
committed
Adjust new TAP test to work on macOS.
Seems Apple's version of "wc -l" puts spaces before the number.(I wonder why the cfbot didn't find this.) While here, makethe failure case log what it got, to aid debugging future issues.Per buildfarm.
1 parent27da1a7 commitafd532c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎src/bin/psql/t/030_pager.pl‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@
2525
'>'=> \$wcstdout,
2626
'2>'=> \$wcstderr;
2727
chomp$wcstdout;
28-
if ($wcstdoutne'2' ||$wcstderrne'')
28+
if ($wcstdout!~/^ *2$/ ||$wcstderrne'')
2929
{
30+
note"wc stdout = '$wcstdout'\n";
31+
note"wc stderr = '$wcstderr'\n";
3032
planskip_all=>'"wc -l" is needed to run this test';
3133
}
3234

@@ -83,17 +85,17 @@ sub do_command
8385

8486
do_command(
8587
"SELECT 'test' AS t FROM generate_series(1,24);\n",
86-
qr/^24\r?$/m,
88+
qr/^ *24\r?$/m,
8789
"execute SELECT query that needs pagination");
8890

8991
do_command(
9092
"\\pset expanded\nSELECT generate_series(1,20) as g;\n",
91-
qr/^39\r?$/m,
93+
qr/^ *39\r?$/m,
9294
"execute SELECT query that needs pagination in expanded mode");
9395

9496
do_command(
9597
"\\pset tuples_only off\n\\d+ information_schema.referential_constraints\n",
96-
qr/^\d+\r?$/m,
98+
qr/^ *\d+\r?$/m,
9799
"execute command with footer that needs pagination");
98100

99101
# send psql an explicit \q to shut it down, else pty won't close properly

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp