Mercurial > hg > octave-nkf > gnulib-hg
annotate m4/sys_wait_h.m4 @ 17935:0ad1f4c9eed5 default tip
tests: support stderr verification with returns_()
* tests/init.sh (returns_): Disable tracing for this wrapper
function, so that stderr of the wrapped command is unchanged,
allowing for verification of the contents.
author | Pádraig Brady <P@draigBrady.com> |
---|---|
date | Mon, 16 Feb 2015 17:20:39 +0000 |
parents | ab58d4870664 |
children |
rev | line source |
---|---|
15594
f4cfbb6036d8
Ensure pid_t gets defined.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
1 # sys_wait_h.m4 serial 6 |
17848 | 2 dnl Copyright (C) 2008-2015 Free Software Foundation, Inc. |
10676 | 3 dnl This file is free software; the Free Software Foundation |
4 dnl gives unlimited permission to copy and/or distribute it, | |
5 dnl with or without modifications, as long as this notice is preserved. | |
6 | |
7 AC_DEFUN([gl_SYS_WAIT_H], | |
8 [ | |
9 AC_REQUIRE([gl_SYS_WAIT_H_DEFAULTS]) | |
10 | |
12995
6991d7777e06
Fix bug introduced on 2009-12-31.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
11 dnl <sys/wait.h> is always overridden, because of GNULIB_POSIXCHECK. |
10676 | 12 gl_CHECK_NEXT_HEADERS([sys/wait.h]) |
13742 | 13 |
15594
f4cfbb6036d8
Ensure pid_t gets defined.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
14 dnl Ensure the type pid_t gets defined. |
f4cfbb6036d8
Ensure pid_t gets defined.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
15 AC_REQUIRE([AC_TYPE_PID_T]) |
f4cfbb6036d8
Ensure pid_t gets defined.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
16 |
13742 | 17 dnl Check for declarations of anything we want to poison if the |
18 dnl corresponding gnulib module is not in use. | |
19 gl_WARN_ON_USE_PREPARE([[#include <sys/wait.h>]], | |
20 [waitpid]) | |
10676 | 21 ]) |
22 | |
23 AC_DEFUN([gl_SYS_WAIT_MODULE_INDICATOR], | |
24 [ | |
25 dnl Use AC_REQUIRE here, so that the default settings are expanded once only. | |
26 AC_REQUIRE([gl_SYS_WAIT_H_DEFAULTS]) | |
13066
fc8c984b0733
Factorize common .m4 code.
Bruno Haible <bruno@clisp.org>
parents:
12995
diff
changeset
|
27 gl_MODULE_INDICATOR_SET_VARIABLE([$1]) |
13745
6328b8d2c617
Separate the module 'waitpid' from the module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
13742
diff
changeset
|
28 dnl Define it also as a C macro, for the benefit of the unit tests. |
6328b8d2c617
Separate the module 'waitpid' from the module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
13742
diff
changeset
|
29 gl_MODULE_INDICATOR_FOR_TESTS([$1]) |
10676 | 30 ]) |
31 | |
32 AC_DEFUN([gl_SYS_WAIT_H_DEFAULTS], | |
33 [ | |
13745
6328b8d2c617
Separate the module 'waitpid' from the module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
13742
diff
changeset
|
34 GNULIB_WAITPID=0; AC_SUBST([GNULIB_WAITPID]) |
10676 | 35 dnl Assume proper GNU behavior unless another module says otherwise. |
36 ]) |