summaryrefslogtreecommitdiffstats
path: root/src/tests/close-test.c
blob: 7a6fec5730aa00df5d4803199f090e412b50c348 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <unistd.h>
#include <fcntl.h>

#include <pulsecore/core-util.h>

int main(int argc, char *argv[]) {

    open("/dev/null", O_RDONLY);
    open("/dev/null", O_RDONLY);
    open("/dev/null", O_RDONLY);
    open("/dev/null", O_RDONLY);

    pa_close_all(5, -1);

    return 0;
}