libqb/tests
Jan Pokorný 1dc71575da
tests: ipc: speed the suite up with avoiding expendable sleep(3)s
Using i7-6820HQ CPU yields these results:

Before: ~2:54
After: ~2:26
Speedup: ~16%

The main optimization lies in how run_function_in_new_process helper is
constructed, since now, there's an actual synchronization between the
parent and its child (that needs to be prioritized here, which is
furthermore help with making the parent immediately give up it's
processor possession) after the fork, so that a subsequent sleep is
completely omitted -- at worst (unlikely), additional sleep round(s)
will need to be undertaken as already arranged for (and now, just
400 ms is waited rather than excessive 1 second).

Another slight optimization is likewise in omission of sleep where
the control gets returned to once the waited for process has been
suceesfully examined post-mortem, without worries it's previous
life is still resounding.

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
2019-06-12 16:27:47 +02:00
..
functional maint: fix "make maintainer-clean" not working in tests/functional 2017-12-21 13:42:19 +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: make qb logging under check always dispose the memory 2017-09-18 10:30:40 +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 tests: ipc: speed the suite up with avoiding expendable sleep(3)s 2019-06-12 16:27:47 +02:00
check_log.c warnings cleanup: Wformat: sign-correct PRIu32 specifiers as appropriate 2017-12-21 01:50:15 +01:00
check_loop.c tests: make qb logging under check always dispose the memory 2017-09-18 10:30:40 +01:00
check_map.c tests: make qb logging under check always dispose the memory 2017-09-18 10:30:40 +01:00
check_rb.c tests: make qb logging under check always dispose the memory 2017-09-18 10:30:40 +01:00
check_util.c tests: make qb logging under check always dispose the memory 2017-09-18 10:30:40 +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 warnings cleanup: Wformat: sign-correct PRIu32 specifiers as appropriate 2017-12-21 01:50:15 +01: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 tests: new sort of tests dubbed "functional", cover linker vs. logging 2017-12-12 20:46:02 +01:00
print_ver.c API: header-based versioning: s/PATCH/MICRO 2016-04-18 19:08:28 +02:00
rbreader.c tests: make qb logging under check always dispose the memory 2017-09-18 10:30:40 +01:00
rbwriter.c tests: make qb logging under check always dispose the memory 2017-09-18 10:30:40 +01: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