]> code.delx.au - pulseaudio/blob - src/tests/close-test.c
module-switch-on-port-available: Use new find best port function
[pulseaudio] / src / tests / close-test.c
1 #ifdef HAVE_CONFIG_H
2 #include <config.h>
3 #endif
4
5 #include <unistd.h>
6 #include <fcntl.h>
7
8 #include <pulsecore/core-util.h>
9
10 int main(int argc, char *argv[]) {
11
12 open("/dev/null", O_RDONLY);
13 open("/dev/null", O_RDONLY);
14 open("/dev/null", O_RDONLY);
15 open("/dev/null", O_RDONLY);
16
17 pa_close_all(5, -1);
18
19 return 0;
20 }