[pulseaudio-commits] r2467 - in /trunk/src: Makefile.am tests/close-test.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Sun May 18 12:13:00 PDT 2008
Author: lennart
Date: Sun May 18 21:12:59 2008
New Revision: 2467
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2467&root=pulseaudio&view=rev
Log:
add a small test program for pa_close_all()
Added:
trunk/src/tests/close-test.c (with props)
Modified:
trunk/src/Makefile.am
Modified: trunk/src/Makefile.am
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/Makefile.am?rev=2467&root=pulseaudio&r1=2466&r2=2467&view=diff
==============================================================================
--- trunk/src/Makefile.am (original)
+++ trunk/src/Makefile.am Sun May 18 21:12:59 2008
@@ -231,6 +231,7 @@
pacat-simple \
parec-simple \
strlist-test \
+ close-test \
voltest \
memblockq-test \
sync-playback \
@@ -355,6 +356,11 @@
strlist_test_CFLAGS = $(AM_CFLAGS)
strlist_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore.la libstrlist.la
strlist_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
+
+close_test_SOURCES = tests/close-test.c
+close_test_CFLAGS = $(AM_CFLAGS)
+close_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore.la libstrlist.la
+close_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
voltest_SOURCES = tests/voltest.c
voltest_CFLAGS = $(AM_CFLAGS)
Added: trunk/src/tests/close-test.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/tests/close-test.c?rev=2467&root=pulseaudio&view=auto
==============================================================================
--- trunk/src/tests/close-test.c (added)
+++ trunk/src/tests/close-test.c Sun May 18 21:12:59 2008
@@ -1,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;
+}
Propchange: trunk/src/tests/close-test.c
------------------------------------------------------------------------------
svn:keywords = Id
More information about the pulseaudio-commits
mailing list