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
This commit is contained in:
Lennart Poettering 2008-05-18 19:12:59 +00:00
parent ef4c6bf9d2
commit b467791b07
2 changed files with 26 additions and 0 deletions

20
src/tests/close-test.c Normal file
View file

@ -0,0 +1,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;
}