pulseaudio/src/tests/close-test.c
Lennart Poettering b467791b07 add a small test program for pa_close_all()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2467 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-18 19:12:59 +00:00

20 lines
334 B
C

#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;
}