1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-05 09:19:17 +03:00

Fix some portability issues in isolation regression test driver.

Remove random system #includes in favor of using postgres_fe.h.  (The
alternative to that is letting this module grow its own configuration
testing ability...)

Also fix the "make clean" target to actually clean things up.

Per local testing.
This commit is contained in:
Tom Lane 2011-05-08 19:44:12 -04:00
parent e6a7402842
commit eff223ffd7
4 changed files with 6 additions and 11 deletions

View File

@ -10,7 +10,7 @@ ifeq ($(PORTNAME), win32)
LDLIBS += -lws2_32
endif
override CPPFLAGS := -I$(srcdir) -I$(libpq_srcdir) $(CPPFLAGS)
override CPPFLAGS := -I$(srcdir) -I$(libpq_srcdir) -I$(srcdir)/../regress $(CPPFLAGS)
override LDLIBS := $(libpq_pgport) $(LDLIBS)
OBJS = specparse.o isolationtester.o
@ -64,7 +64,7 @@ endif
clean distclean:
rm -f isolationtester$(X) pg_isolation_regress$(X) $(OBJS) isolation_main.o
rm -f pg_regress.o
rm -rf results
rm -rf $(pg_regress_clean_files)
maintainer-clean: distclean
rm -f specparse.c specscanner.c

View File

@ -10,7 +10,7 @@
*-------------------------------------------------------------------------
*/
#include "../regress/pg_regress.h"
#include "pg_regress.h"
/*
* start an isolation tester process for specified file (including

View File

@ -5,14 +5,12 @@
* Runs an isolation test specified by a spec file.
*/
#include "postgres_fe.h"
#ifdef WIN32
#include <windows.h>
#endif
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libpq-fe.h"
#include "isolationtester.h"

View File

@ -10,10 +10,7 @@
*-------------------------------------------------------------------------
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "postgres_fe.h"
#include "isolationtester.h"