This source file includes following definitions.
- main
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 #include <config.h>
21
22
23 #include "supersede.h"
24
25 #include <errno.h>
26 #include <fcntl.h>
27 #include <stdbool.h>
28 #include <stdlib.h>
29 #include <string.h>
30 #include <sys/stat.h>
31 #include <unistd.h>
32
33 #include "filenamecat.h"
34 #include "read-file.h"
35 #include "macros.h"
36
37
38 #if defined _WIN32 && ! defined __CYGWIN__
39
40 # define DEV_NULL "NUL"
41 #else
42
43 # define DEV_NULL "/dev/null"
44 #endif
45
46 #include "test-supersede-open.h"
47 #include "test-supersede-fopen.h"
48
49 int
50 main (void)
51 {
52 test_open_supersede (false, false);
53 test_open_supersede (false, true);
54 test_open_supersede (true, false);
55 test_open_supersede (true, true);
56
57 test_fopen_supersede (false, false);
58 test_fopen_supersede (false, true);
59 test_fopen_supersede (true, false);
60 test_fopen_supersede (true, true);
61
62 return 0;
63 }