summaryrefslogtreecommitdiff
path: root/lib/tevent/testsuite.c
Commit message (Collapse)AuthorAgeFilesLines
* tevent: add a test that frees wrapper_ev with pending eventsRalph Boehme2018-07-111-0/+157
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* tevent: add a simple wrapper testRalph Boehme2018-07-111-0/+356
| | | | | | | | This checks that for all supported event types the before and after handlers are called. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* tevent: make use of #include "system/threads.h"Stefan Metzmacher2018-07-111-1/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* tevent/testsuite: return after torture_fail()Stefan Metzmacher2018-07-111-1/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* tevent: Fix CID 1414792 Unchecked return valueVolker Lendecke2018-04-111-1/+4
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* lib: tevent: Use system <tevent.h>, not internal header path (except in ↵Jeremy Allison2017-08-161-1/+1
| | | | | | | self-test). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* tevent: Add tevent_re_initialise to threaded testVolker Lendecke2017-06-081-0/+8
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* tevent: Simple test for threaded immediatesVolker Lendecke2016-08-241-0/+99
| | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* tevent:testsuite: fix O3 errors unused result of writeMichael Adam2016-05-131-7/+17
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* tevent:testsuite: fix O3 errors unused result for readMichael Adam2016-05-131-2/+11
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* lib: tevent: tests: Add a second thread test that does request/reply.Jeremy Allison2015-11-051-0/+205
| | | | | | | | Both tests run cleanly with valgrind --tool=drd and valgrind --tool=helgrind Signed-off-by: Jeremy Allison <jra@samba.org> Signed-off-by: Ralph Boehme <slow@samba.org>
* lib: tevent: Initial test of tevent threaded context code.Jeremy Allison2015-11-051-0/+125
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Signed-off-by: Ralph Boehme <slow@samba.org>
* tevent/testsuite: make sure we cleanup tevent_fd structures in the correct orderStefan Metzmacher2015-06-121-2/+2
| | | | | | | | | | | | First we need to remove the tevent_fd structures without tevent_fd_set_auto_close(). Closing the fd needs to be the last thing... BUG: https://bugzilla.samba.org/show_bug.cgi?id=11316 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* tevent: Fix CID 1035381 Unchecked return valueVolker Lendecke2015-04-211-1/+3
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* lib/tevent/tests: add missing #include "torture/local/proto.h"Stefan Metzmacher2014-04-021-0/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Fix tevent testsuite issue on Solaris.Jeremy Allison2013-03-221-1/+6
| | | | | | | | | | | | On Solaris/Nexenta/Illumos once a pipe is full it will not be reported as writable until PIPE_BUF (actually on Solaris 4096, which is less than PIPE_BUF) bytes have been read from it. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri Mar 22 18:16:45 CET 2013 on sn-devel-104
* Solaris/Illumos/Nexenta creates pipes that are bi-directional by default.Jeremy Allison2013-03-221-10/+16
| | | | | | | | Ensure the test code will pass against such a system (allow writes/reads going both ways). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* tevent: add test_event_fd2()Stefan Metzmacher2013-03-011-0/+242
| | | | | | | | | This test fills the socket kernel buffers and verifies that we don't report TEVENT_FD_WRITE if the buffer is full. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* tevent: add test_event_fd1()Stefan Metzmacher2013-03-011-0/+221
| | | | | | | This test verifies that TEVENT_FD_* flags are handled correctly. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* tevent: use better names for the subtestsStefan Metzmacher2013-03-011-2/+9
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* tevent: Regression test to ensure that a tevent backend can cope with ↵Jeremy Allison2013-03-011-11/+50
| | | | | | | | | | separate read/write events on a single fd. This tests the multiplex fd changes to the epoll backend to ensure they work correctly. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* tevent: add trace points BEFORE_LOOP_ONCE and AFTER_LOOP_ONCEMichael Adam2013-03-011-0/+3
| | | | | | | | | | The define TEVENT_HAS_LOOP_ONCE_TRACE_POINTS can be used to detect the new feature, without writing configure tests. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* tevent: fix some compiler warnings in testsuite.cStefan Metzmacher2013-03-011-1/+15
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* tevent: Add threaded poll_mt testcaseVolker Lendecke2012-08-161-0/+145
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* tevent: Refer to the correct header in testsuite.cVolker Lendecke2012-07-311-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* lib/tevent/testsuite: no longer use 'compat' symbolsStefan Metzmacher2012-05-141-12/+12
| | | | metze
* Fix bug 7462 - Non-standard SA_RESETHAND is used in ↵Jeremy Allison2011-08-011-0/+2
| | | | | | | | | ...lib/tevent/tevent_signal.c Make SA_RESETHAND conditional on its existance. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Aug 1 22:03:45 CEST 2011 on sn-devel-104
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-111-1/+1
| | | | | | | | This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
* tevent: try to fix the build on QNX qnx18 6.4.1 it doesn't have SA_RESTART ↵Stefan Metzmacher2009-07-161-1/+11
| | | | | | defined metze
* lib/tevent: change to LGPLv3+Stefan Metzmacher2009-02-161-14/+18
| | | | metze
* lib/tevent: s/private/private_dataStefan Metzmacher2009-02-021-6/+6
| | | | metze
* tevent: add tevent_fd_set_auto_close()Stefan Metzmacher2009-01-031-1/+2
| | | | | | | | tevent_fd_set_auto_close() is a simple wrapper arround tevent_fd_set_close_fn() with a callback that uses plain close(2). metze
* s4:lib/tevent: rename structsStefan Metzmacher2008-12-291-5/+5
| | | | | | | | | | | | | | | | | | | | list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
* s4:lib/events: move to toplevel directory as lib/tevent/Stefan Metzmacher2008-12-171-0/+145
This commit will not compile on its own. metze