1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/lib/util/tests
Swen Schillig 3bf915846f tfork: Free memory in torture test to satisfy sanitizer
Signed-off-by: Swen Schillig <swen@linux.ibm.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Matthias Dieter Wallnöfer <mdw@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Aug  8 11:33:32 UTC 2019 on sn-devel-184
2019-08-08 11:33:32 +00:00
..
anonymous_shared.c
asn1_tests.c asn1: Remove a reference to asn1_data internals 2016-01-06 00:54:18 +01:00
binsearch.c binsearch: make BINARY_ARRAY_SEARCH_GTE compare against a pointer 2017-02-09 03:17:15 +01:00
data_blob.c
dlinklist.c dlist: remove unneeded type argument from DLIST_CONCATENATE() 2016-02-06 21:48:18 +01:00
file.c lib/util/tests: clang fix Value stored to 'lines' is never read warning 2019-06-04 22:13:07 +00:00
genrand.c util: Free memory in genrand torture test to satisfy sanitizer 2019-08-08 10:08:32 +00:00
genrandperf.c lib: Add a little tool to perftest generate_random_buffer() 2015-10-13 01:23:07 +02:00
idtree.c
README tfork: add a README how to run test torture test under valgrind 2018-11-28 15:57:43 +01:00
rfc1738.c util/tests: add rfc1738 cmocka tests 2018-02-22 01:04:18 +01:00
str.c
strlist.c lib/util/tests: avoid some compiler warnings 2014-11-14 23:27:04 +01:00
strv_util.c lib/util: Add strv_util.[ch] containing new function strv_split() 2016-03-01 05:43:19 +01:00
strv.c lib/util: Add tests for strv_addn() 2016-02-29 15:18:17 +01:00
test_byteorder.c lib:util: Add a test for byteorder.h 2019-05-17 20:44:36 +00:00
test_ms_fnmatch.c Fix uClibc build on 64bit platforms by including stdint.h 2019-05-19 17:34:20 +00:00
test_talloc_keep_secret.c lib:util: Add test for talloc_keep_secret() 2019-04-03 06:48:21 +00:00
tfork-drd.supp tfork: add a suppresssions file for drd 2018-11-28 12:59:28 +01:00
tfork-helgrind.supp tfork: add a suppresssions file for helgrind 2018-11-28 12:59:28 +01:00
tfork.c tfork: Free memory in torture test to satisfy sanitizer 2019-08-08 11:33:32 +00:00
time.c
util_str_escape.c lib/util: Add functions to escape log lines but not break all non-ascii 2017-03-29 02:37:26 +02:00
util.c tests-util: Adding test to verify "allow no conversion" flag 2019-06-30 12:47:24 +00:00

tfork tests
===========

To run the tfork torture testsuite under valgrind with the helgrind or drd
thread checkers, run valgrind with the --suppress option passing a suppressions
file.

For helgrind:

$ valgrind \
  --trace-children=yes \
  --tool=helgrind \
  --suppressions=lib/util/tests/tfork-helgrind.supp \
  ./bin/smbtorture ncalrpc:localhost local.tfork.tfork_threads

For drd:

$ valgrind \
  --trace-children=yes \
  --tool=drd \
  --suppressions=lib/util/tests/tfork-drd.supp \
  ./bin/smbtorture ncalrpc:localhost local.tfork.tfork_threads