annotate tests/test-sys_wait-c++.cc @ 17921:58c1b50299a6

getopt: give accurate ambiguity diagnostic on mem exhaustion * lib/getopt.c (_getopt_internal_r): The previous commit broke out the loop too early, which could give a false indication of ambiguous options under memory exhaustion.
author Pádraig Brady <P@draigBrady.com>
date Wed, 18 Feb 2015 22:37:31 +0000
parents ab58d4870664
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13743
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Test of <sys/wait.h> substitute in C++ mode.
17848
ab58d4870664 version-etc: new year
Paul Eggert <eggert@cs.ucla.edu>
parents: 17587
diff changeset
2 Copyright (C) 2010-2015 Free Software Foundation, Inc.
13743
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software: you can redistribute it and/or modify
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 3 of the License, or
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 (at your option) any later version.
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 /* Written by Bruno Haible <bruno@clisp.org>, 2010. */
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #define GNULIB_NAMESPACE gnulib
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 #include <config.h>
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 #include <sys/wait.h>
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 #include "signature.h"
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26
13745
6328b8d2c617 Separate the module 'waitpid' from the module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents: 13743
diff changeset
27 #if GNULIB_TEST_WAITPID
13743
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::waitpid, pid_t, (pid_t, int *, int));
13745
6328b8d2c617 Separate the module 'waitpid' from the module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents: 13743
diff changeset
29 #endif
13743
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 int
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 main ()
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 {
ebf34d732f15 More tests for module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 }