File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ tmp=`mktemp -d /tmp/$me.XXXXXX`
5252
5353trap ' rm -rf $tmp' 0 1 2 3 15
5454
55+ exit_status=0
56+
5557# Scan all of src/ and contrib/ for header files.
5658for f in ` cd " $srcdir " && find src contrib -name ' *.h' -print`
5759do
167169 esac
168170
169171 # Run the test.
170- ${CXX:- g++} -I $builddir -I $srcdir \
172+ if ! ${CXX:- g++} -I $builddir -I $srcdir \
171173 -I $builddir /src/include -I $srcdir /src/include \
172174 -I $builddir /src/interfaces/libpq -I $srcdir /src/interfaces/libpq \
173175 $EXTRAINCLUDES $EXTRAFLAGS $CXXFLAGS -c $tmp /test.cpp
174-
176+ then
177+ exit_status=1
178+ fi
175179done
180+
181+ exit $exit_status
Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ tmp=`mktemp -d /tmp/$me.XXXXXX`
4848
4949trap ' rm -rf $tmp' 0 1 2 3 15
5050
51+ exit_status=0
52+
5153# Scan all of src/ and contrib/ for header files.
5254for f in ` cd " $srcdir " && find src contrib -name ' *.h' -print`
5355do
150152 esac
151153
152154 # Run the test.
153- ${CC:- gcc} $CPPFLAGS $CFLAGS -I $builddir -I $srcdir \
155+ if ! ${CC:- gcc} $CPPFLAGS $CFLAGS -I $builddir -I $srcdir \
154156 -I $builddir /src/include -I $srcdir /src/include \
155157 -I $builddir /src/interfaces/libpq -I $srcdir /src/interfaces/libpq \
156158 $EXTRAINCLUDES $EXTRAFLAGS -c $tmp /test.c -o $tmp /test.o
157-
159+ then
160+ exit_status=1
161+ fi
158162done
163+
164+ exit $exit_status
You can’t perform that action at this time.
0 commit comments