libqb/tests
Chrissie Caulfield 41a24a3df7 Allow Linux to use filesystem sockets (#248)
* IPC: Allow filesystem sockets to be chosen at run-time on Linux

Most of this patch came from Andrew Beekhof.
Keep a global variable that decides whether or not to use filesystem sockets
or abstract sockets for IPC connections. This variable is set by the presence of a file (default /etc/libqb/force-filesystem-sockets).

* tests: Fix test_ipcc_truncate_when_unlink_fails_shm test using FS sockets

When using filesystem sockets, the
test_ipcc_truncate_when_unlink_fails_shm test always fails, this was
because the unlink() call is wrapped to fail and so it never cleans up
the old version of the socket.
The fix is to preemptively remove the file before unlink gets wrapped.

* doc: Explain the force-filesystem-sockets option

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
2017-04-28 16:13:02 +01:00
..
_failure_injection.c tests: start stdlib failures injection effort with unlink{,at} + test 2016-11-04 19:06:08 +01:00
_failure_injection.h tests: start stdlib failures injection effort with unlink{,at} + test 2016-11-04 19:06:08 +01:00
_syslog_override.c Feature: allow changing the identifier for syslog (+tests) 2016-02-18 11:30:14 +01:00
_syslog_override.h Feature: allow changing the identifier for syslog (+tests) 2016-02-18 11:30:14 +01:00
.gitignore API: introduce alternative, header-based versioning 2016-04-01 23:19:40 +02:00
bench-log.c By default don't build in the slow benchlog 2011-11-25 11:12:27 +11:00
blackbox-segfault.sh Low: tests: Verify reading valid blackbox file works 2013-06-27 19:47:04 -05:00
bmc.c Deprecate qb_util_set_log_function() 2012-01-24 16:00:05 +11:00
bmcpt.c Low: sanitize import of <qb/qbarray.h> symbols 2016-10-17 17:25:50 +02:00
bms.c Low: sanitize import of <qb/qbarray.h> symbols 2016-10-17 17:25:50 +02:00
check_array.c tests: refactor test case defs using versatile add_tcase macro 2016-03-01 15:11:38 +01:00
check_common.h tests: refactor test case defs using versatile add_tcase macro 2016-03-01 15:11:38 +01:00
check_ipc.c Allow Linux to use filesystem sockets (#248) 2017-04-28 16:13:02 +01:00
check_log.c build: drop allegedly no longer intrusive syslog-tests opt-in switch 2016-12-12 12:18:37 +01:00
check_loop.c loop: don't override external signal handlers 2017-02-24 16:23:43 +00:00
check_map.c tests: refactor test case defs using versatile add_tcase macro 2016-03-01 15:11:38 +01:00
check_rb.c [tests] Fix qb_rb_chunk_peek test so it's consistent with qb_rb_read 2017-01-31 10:41:29 +00:00
check_util.c tests: refactor test case defs using versatile add_tcase macro 2016-03-01 15:11:38 +01:00
crash_test_dummy.c Deal better with corrupt blackbox files. 2013-04-02 13:52:57 +11:00
file_change_bytes.c Low: tests: Fixes compile time issue with make check 2014-01-20 16:59:52 -06:00
format_compare_speed.c test: fix missing-format-attribute warning 2013-02-19 10:18:01 +11:00
loop.c Deprecate qb_util_set_log_function() 2012-01-24 16:00:05 +11:00
make-log-test.sh TEST: change the script to .sh and generated c file to auto_ 2012-01-16 22:18:39 +11:00
Makefile.am build: drop allegedly no longer intrusive syslog-tests opt-in switch 2016-12-12 12:18:37 +01:00
print_ver.c API: header-based versioning: s/PATCH/MICRO 2016-04-18 19:08:28 +02:00
rbreader.c TEST: make rbreader/writer more like the other benchmarking apps 2012-05-21 08:30:22 +10:00
rbwriter.c Remove uses of timersub and use qb_util_stopwatch 2012-08-28 22:05:09 +10:00
resources.test tests: start stdlib failures injection effort with unlink{,at} + test 2016-11-04 19:06:08 +01:00
run-coverity test: add helper script for running coverity 2015-09-09 15:54:26 -05:00
test.conf.in Deal better with corrupt blackbox files. 2013-04-02 13:52:57 +11:00