From acfe1392eff2f96ef7931068b11b2d58196f4d95 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 2 Jan 2019 21:20:53 +0100 Subject: [PATCH] Switch pg_regress to output unified diffs by default Author: Christoph Berg Discussion: https://www.postgresql.org/message-id/flat/20170406223103.ixihdedf6d6d4kbk@alap3.anarazel.de/ --- doc/src/sgml/regress.sgml | 2 +- src/test/regress/pg_regress.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/src/sgml/regress.sgml b/doc/src/sgml/regress.sgml index 673a8c2164..749d1a384b 100644 --- a/doc/src/sgml/regress.sgml +++ b/doc/src/sgml/regress.sgml @@ -410,7 +410,7 @@ make standbycheck If you don't like the diff options that are used by default, set the environment variable PG_REGRESS_DIFF_OPTS, for - instance PG_REGRESS_DIFF_OPTS='-u'. (Or you + instance PG_REGRESS_DIFF_OPTS='-c'. (Or you can run diff yourself, if you prefer.) diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c index 3c360d1635..d4f04a8a2c 100644 --- a/src/test/regress/pg_regress.c +++ b/src/test/regress/pg_regress.c @@ -62,10 +62,10 @@ static char *shellprog = SHELLPROG; */ #ifndef WIN32 const char *basic_diff_opts = ""; -const char *pretty_diff_opts = "-C3"; +const char *pretty_diff_opts = "-U3"; #else const char *basic_diff_opts = "-w"; -const char *pretty_diff_opts = "-w -C3"; +const char *pretty_diff_opts = "-w -U3"; #endif /* options settable from command line */