Skip to content

Commit 6647ce8

Browse files
committed
Exit with non-zero error on thread test failures.
1 parent 144d828 commit 6647ce8

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

configure

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19164,12 +19164,14 @@ $MAKE -C $srcdir/src/tools/thread clean >&5 ||
1916419164
( rm -f src/Makefile.global
1916519165
{ { echo "$as_me:$LINENO: error: Can not clean thread test directory." >&5
1916619166
echo "$as_me: error: Can not clean thread test directory." >&2;}
19167-
{ (exit 1); exit 1; }; })
19167+
{ (exit 1); exit 1; }; }) ||
19168+
exit $?
1916819169
$MAKE -C $srcdir/src/tools/thread >&5 ||
1916919170
( rm -f src/Makefile.global
1917019171
{ { echo "$as_me:$LINENO: error: Can not build thread test proram." >&5
1917119172
echo "$as_me: error: Can not build thread test proram." >&2;}
19172-
{ (exit 1); exit 1; }; })
19173+
{ (exit 1); exit 1; }; }) ||
19174+
exit $?
1917319175
$srcdir/src/tools/thread/thread_test >&5 ||
1917419176
( rm -f src/Makefile.global
1917519177
echo "no"
@@ -19178,12 +19180,14 @@ $srcdir/src/tools/thread/thread_test >&5 ||
1917819180
echo
1917919181
{ { echo "$as_me:$LINENO: error: Thread test program failed. Your platform is not thread-safe." >&5
1918019182
echo "$as_me: error: Thread test program failed. Your platform is not thread-safe." >&2;}
19181-
{ (exit 1); exit 1; }; })
19183+
{ (exit 1); exit 1; }; }) ||
19184+
exit $?
1918219185
$MAKE -C $srcdir/src/tools/thread clean >&5 ||
1918319186
( rm -f src/Makefile.global
1918419187
{ { echo "$as_me:$LINENO: error: Can not clean thread test directory." >&5
1918519188
echo "$as_me: error: Can not clean thread test directory." >&2;}
19186-
{ (exit 1); exit 1; }; })
19189+
{ (exit 1); exit 1; }; }) ||
19190+
exit $?
1918719191
echo "yes"
1918819192
else
1918919193
{ echo "$as_me:$LINENO: WARNING:

configure.in

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $PostgreSQL: pgsql/configure.in,v 1.332 2004/04/26 00:34:12 momjian Exp $
2+
dnl $PostgreSQL: pgsql/configure.in,v 1.333 2004/04/26 00:44:39 momjian Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -1225,20 +1225,24 @@ AC_MSG_CHECKING([thread safety of required library functions.])
12251225
#
12261226
$MAKE -C $srcdir/src/tools/thread clean >&5 ||
12271227
( rm -f src/Makefile.global
1228-
AC_MSG_ERROR([Can not clean thread test directory.]))
1228+
AC_MSG_ERROR([Can not clean thread test directory.])) ||
1229+
exit $?
12291230
$MAKE -C $srcdir/src/tools/thread >&5 ||
12301231
( rm -f src/Makefile.global
1231-
AC_MSG_ERROR([Can not build thread test proram.]))
1232+
AC_MSG_ERROR([Can not build thread test proram.])) ||
1233+
exit $?
12321234
$srcdir/src/tools/thread/thread_test >&5 ||
12331235
( rm -f src/Makefile.global
12341236
echo "no"
12351237
echo
12361238
$srcdir/src/tools/thread/thread_test
12371239
echo
1238-
AC_MSG_ERROR([Thread test program failed. Your platform is not thread-safe.]))
1240+
AC_MSG_ERROR([Thread test program failed. Your platform is not thread-safe.])) ||
1241+
exit $?
12391242
$MAKE -C $srcdir/src/tools/thread clean >&5 ||
12401243
( rm -f src/Makefile.global
1241-
AC_MSG_ERROR([Can not clean thread test directory.]))
1244+
AC_MSG_ERROR([Can not clean thread test directory.])) ||
1245+
exit $?
12421246
echo "yes"
12431247
else
12441248
AC_MSG_WARN([

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