summaryrefslogtreecommitdiffstats
path: root/lib/tevent/testsuite.c
Commit message (Collapse)AuthorAgeFilesLines
* 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