Mercurial > hg > octave-jordi > gnulib-hg
annotate tests/test-select.c @ 17960:1c04e5182252
git-version-gen: revert "detect untagged revisions"
Revert commit bedd7833 as it breaks `make dist` in Inetutils
at least, due to the interdependencies with top/GNUMakefile,
which depend on the tag prefixes. This results in `make dist`
inducing a new call to autoconf where a simple tar-ball build
would be expected.
author | Mats Erik Andersson <mats.andersson@gisladisker.se> |
---|---|
date | Tue, 14 Apr 2015 21:25:59 +0100 |
parents | ab58d4870664 |
children |
rev | line source |
---|---|
10587
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 /* Test of select() substitute. |
17848 | 2 Copyright (C) 2008-2015 Free Software Foundation, Inc. |
10587
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 |
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 This program is free software: you can redistribute it and/or modify |
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
5 it under the terms of the GNU General Public License as published by |
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 the Free Software Foundation; either version 3 of the License, or |
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 (at your option) any later version. |
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 |
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 This program is distributed in the hope that it will be useful, |
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 but WITHOUT ANY WARRANTY; without even the implied warranty of |
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 GNU General Public License for more details. |
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 |
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
14 You should have received a copy of the GNU General Public License |
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 |
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
17 /* Written by Paolo Bonzini, 2008. */ |
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
18 |
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
19 #include <config.h> |
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
20 |
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
21 #include <sys/select.h> |
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
22 |
12489 | 23 #include "signature.h" |
15342
2a17513766d8
test-pselect: new module
Paul Eggert <eggert@cs.ucla.edu>
parents:
14079
diff
changeset
|
24 |
12489 | 25 SIGNATURE_CHECK (select, int, (int, fd_set *, fd_set *, fd_set *, |
26 struct timeval *)); | |
15342
2a17513766d8
test-pselect: new module
Paul Eggert <eggert@cs.ucla.edu>
parents:
14079
diff
changeset
|
27 |
15445
78d76c49295d
select tests, pselect tests: Refactor.
Bruno Haible <bruno@clisp.org>
parents:
15444
diff
changeset
|
28 #include "test-select.h" |
10587
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
29 |
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
30 int |
12210
441d8820b5a5
tests: avoid some compiler warnings
Eric Blake <ebb9@byu.net>
parents:
11765
diff
changeset
|
31 main (void) |
10587
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
32 { |
15445
78d76c49295d
select tests, pselect tests: Refactor.
Bruno Haible <bruno@clisp.org>
parents:
15444
diff
changeset
|
33 return test_function (select); |
10587
11a59edc66bd
Split sys_select-tests module into select-tests and sys_select-tests.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
34 } |