Skip to content

Commit eff223f

Browse files
committed
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.
1 parent e6a7402 commit eff223f

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

src/test/isolation/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ifeq ($(PORTNAME), win32)
1010
LDLIBS += -lws2_32
1111
endif
1212

13-
override CPPFLAGS := -I$(srcdir) -I$(libpq_srcdir) $(CPPFLAGS)
13+
override CPPFLAGS := -I$(srcdir) -I$(libpq_srcdir) -I$(srcdir)/../regress $(CPPFLAGS)
1414
override LDLIBS := $(libpq_pgport) $(LDLIBS)
1515

1616
OBJS = specparse.o isolationtester.o
@@ -64,7 +64,7 @@ endif
6464
clean distclean:
6565
rm -f isolationtester$(X) pg_isolation_regress$(X) $(OBJS) isolation_main.o
6666
rm -f pg_regress.o
67-
rm -rf results
67+
rm -rf $(pg_regress_clean_files)
6868

6969
maintainer-clean: distclean
7070
rm -f specparse.c specscanner.c

src/test/isolation/isolation_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*-------------------------------------------------------------------------
1111
*/
1212

13-
#include "../regress/pg_regress.h"
13+
#include "pg_regress.h"
1414

1515
/*
1616
* start an isolation tester process for specified file (including

src/test/isolation/isolationtester.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@
55
* Runs an isolation test specified by a spec file.
66
*/
77

8+
#include "postgres_fe.h"
9+
810
#ifdef WIN32
911
#include <windows.h>
1012
#endif
1113

12-
#include <stddef.h>
13-
#include <stdio.h>
14-
#include <stdlib.h>
15-
#include <string.h>
1614
#include "libpq-fe.h"
1715

1816
#include "isolationtester.h"

src/test/isolation/specparse.y

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
*-------------------------------------------------------------------------
1111
*/
1212

13-
#include <stdio.h>
14-
#include <stdlib.h>
15-
#include <stdint.h>
16-
#include <string.h>
13+
#include "postgres_fe.h"
1714

1815
#include "isolationtester.h"
1916

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy