diff options
Diffstat (limited to 'regress/test-exec.sh')
-rw-r--r-- | regress/test-exec.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh index b64dcdbcf..5c56aefff 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh | |||
@@ -221,6 +221,17 @@ fatal () | |||
221 | exit $RESULT | 221 | exit $RESULT |
222 | } | 222 | } |
223 | 223 | ||
224 | # Check whether preprocessor symbols are defined in config.h. | ||
225 | config_defined () | ||
226 | { | ||
227 | str=$1 | ||
228 | while test "x$2" != "x" ; do | ||
229 | str="$str|$2" | ||
230 | shift | ||
231 | done | ||
232 | egrep "^#define.*($str)" ${BUILDDIR}/config.h >/dev/null 2>&1 | ||
233 | } | ||
234 | |||
224 | RESULT=0 | 235 | RESULT=0 |
225 | PIDFILE=$OBJ/pidfile | 236 | PIDFILE=$OBJ/pidfile |
226 | 237 | ||