summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorTom Lane2017-03-09 01:41:06 +0000
committerTom Lane2017-03-09 01:41:06 +0000
commit9722bb5757c5e90617be685bf127911b63efe08d (patch)
treeb96b6f6647e58936dd76df98435812f0be244b2f /src/test
parent08da52859a1fadeac10aab621c6c793791ec1f2c (diff)
Fix inclusions of postgres_fe.h from .h files.
We have a project policy that every .c file should start by including postgres.h, postgres_fe.h, or c.h as appropriate; and then there is no need for any .h file to explicitly include any of these. Fix a few headers that were violating this policy by including postgres_fe.h. Discussion: https://postgr.es/m/CAEepm=2zCoeq3QxVwhS5DFeUh=yU6z81pbWMgfOB8OzyiBwxzw@mail.gmail.com Discussion: https://postgr.es/m/11634.1488932128@sss.pgh.pa.us
Diffstat (limited to 'src/test')
-rw-r--r--src/test/isolation/isolation_main.c2
-rw-r--r--src/test/regress/pg_regress.c4
-rw-r--r--src/test/regress/pg_regress.h1
-rw-r--r--src/test/regress/pg_regress_main.c2
4 files changed, 7 insertions, 2 deletions
diff --git a/src/test/isolation/isolation_main.c b/src/test/isolation/isolation_main.c
index 46b48ee855..8a3d7f51b3 100644
--- a/src/test/isolation/isolation_main.c
+++ b/src/test/isolation/isolation_main.c
@@ -10,6 +10,8 @@
*-------------------------------------------------------------------------
*/
+#include "postgres_fe.h"
+
#include "pg_regress.h"
char saved_argv0[MAXPGPATH];
diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c
index d4d00d9c66..c393ae1f51 100644
--- a/src/test/regress/pg_regress.c
+++ b/src/test/regress/pg_regress.c
@@ -16,7 +16,7 @@
*-------------------------------------------------------------------------
*/
-#include "pg_regress.h"
+#include "postgres_fe.h"
#include <ctype.h>
#include <sys/stat.h>
@@ -29,6 +29,8 @@
#include <sys/resource.h>
#endif
+#include "pg_regress.h"
+
#include "common/restricted_token.h"
#include "common/username.h"
#include "getopt_long.h"
diff --git a/src/test/regress/pg_regress.h b/src/test/regress/pg_regress.h
index 62433b158f..f7745b16e1 100644
--- a/src/test/regress/pg_regress.h
+++ b/src/test/regress/pg_regress.h
@@ -8,7 +8,6 @@
*-------------------------------------------------------------------------
*/
-#include "postgres_fe.h"
#include <unistd.h>
#ifndef WIN32
diff --git a/src/test/regress/pg_regress_main.c b/src/test/regress/pg_regress_main.c
index 6106c6bbda..298ed758ee 100644
--- a/src/test/regress/pg_regress_main.c
+++ b/src/test/regress/pg_regress_main.c
@@ -16,6 +16,8 @@
*-------------------------------------------------------------------------
*/
+#include "postgres_fe.h"
+
#include "pg_regress.h"
/*