1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
samba-mirror/lib/util/tests
Christof Schmitt d3109a11c8 lib/util: Move cleanup for unit test in teardown function
Where to call rmdir does not matter, but that should avoid the TOCTOU
warning from CID 1466194 and might be slightly cleaner.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Aug 24 03:10:09 UTC 2020 on sn-devel-184
2020-08-24 03:10:09 +00:00
..
anonymous_shared.c
asn1_tests.c CVE-2020-10704: lib util asn1: Add ASN.1 max tree depth 2020-05-04 02:59:31 +00: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_bytearray.c lib:util: Add bytearray.h 2020-02-21 02:09:33 +00:00
test_byteorder_verify.c lib:util: Add test to verify old and new macros are the same 2020-02-21 02:09:33 +00: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
test_util_paths.c util: fix build on AIX by fixing the order of replace.h include 2020-06-29 18:19:04 +00:00
test_util.c lib/util: Move cleanup for unit test in teardown function 2020-08-24 03:10:09 +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 Spelling fixes s/avaiable/available/ 2019-09-01 22:21:26 +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 lib: relicense smb_strtoul(l) under LGPLv3 2020-08-03 22:21:02 +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