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.
pull/1/head
Tom Lane 15 years ago
parent e6a7402842
commit eff223ffd7
  1. 4
      src/test/isolation/Makefile
  2. 2
      src/test/isolation/isolation_main.c
  3. 6
      src/test/isolation/isolationtester.c
  4. 5
      src/test/isolation/specparse.y

@ -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

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

@ -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"

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

Loading…
Cancel
Save