mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
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:
parent
ef4c6bf9d2
commit
b467791b07
2 changed files with 26 additions and 0 deletions
20
src/tests/close-test.c
Normal file
20
src/tests/close-test.c
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue