annotate tests/test-xstdopen.c @ 40196:e63f5d3edab5

relocatable-prog: Update documentation. * doc/relocatable-maint.texi (Supporting Relocation): Update to match the recent changes.
author Bruno Haible <bruno@clisp.org>
date Sun, 24 Feb 2019 01:49:15 +0100
parents fd583bcb1e66
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
40091
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Test of xstdopen() function.
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 Copyright (C) 2019 Free Software Foundation, Inc.
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software: you can redistribute it and/or modify
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 3 of the License, or
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 (at your option) any later version.
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 along with this program. If not, see <https://www.gnu.org/licenses/>. */
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 #include <config.h>
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #include "xstdopen.h"
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 #include <fcntl.h>
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 #include "macros.h"
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 int
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 main (void)
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 {
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 xstdopen ();
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 ASSERT (open ("Makefile", O_RDONLY) >= 3);
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 return 0;
fd583bcb1e66 xstdopen: Add tests.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 }