From c083259464e1e140165795a8bf6e3c0cfcbc64fe Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Thu, 31 Mar 2011 14:37:40 +0200 Subject: tests: add a connection stress test This test is based on a threaded main loop and was written to hunt an evil race condition. --- src/Makefile.am | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 3bec5e86..bdeddedd 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -240,7 +240,7 @@ pabrowse_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) # Test programs # ################################### -# missing: mcalign-test flist-test pacat-simple parec-simple sync-playback rtstutter stripnul interpol-test thread-test +# missing: mcalign-test flist-test pacat-simple parec-simple sync-playback rtstutter stripnul interpol-test thread-test connect-stress TESTS = \ mainloop-test \ @@ -303,7 +303,8 @@ TESTS_BINARIES = \ rtstutter \ stripnul \ lock-autospawn-test \ - prioq-test + prioq-test \ + connect-stress if !OS_IS_WIN32 TESTS += \ @@ -563,6 +564,12 @@ usergroup_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la l usergroup_test_CFLAGS = $(AM_CFLAGS) usergroup_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) +connect_stress_SOURCES = tests/connect-stress.c +connect_stress_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la +connect_stress_CFLAGS = $(AM_CFLAGS) +connect_stress_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) + + ################################### # Common library # ################################### -- cgit