Skip to content

Commit 0704aed

Browse files
committed
Use portable diff options in pg_bsd_indent's regression test.
We had been using "diff -upd", which evidently works for most people, but Solaris's diff doesn't like it. (We'd not noticed because the Solaris buildfarm animals weren't running this test until they were upgraded to the latest buildfarm client script.) Change to "diff -U3" which is what pg_regress has used for ages. Per buildfarm (and off-list discussion with Noah Misch). Back-patch to v16 where this test was added. In v16, also back-patch the relevant part of 628c1d1 so that the test script looks about the same in all branches.
1 parent 3a7ae6b commit 0704aed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/pg_bsd_indent/t/001_pg_bsd_indent.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
# Any diffs in the generated files will be accumulated here.
2727
my $diffs_file = "test.diffs";
2828

29-
# options used with diff
30-
my @diffopts = ("-upd");
29+
# options used with diff (see pg_regress.c's pretty_diff_opts)
30+
my @diffopts = ("-U3");
3131
push(@diffopts, "--strip-trailing-cr") if $windows_os;
3232

3333
# Copy support files to current dir, so *.pro files don't need to know path.

0 commit comments

Comments
 (0)