1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3/torture
Douglas Bagnall 267f307689 s3/torture: local_rbtree: avoid birthday collisions
We insert 999 keys, but if two of them happen to be the same, we
don't find 1000 nodes, and that is upsetting for CI:

[130(1421)/303 at 4m46s] samba3.smbtorture_s3.LOCAL-RBTREE
UNEXPECTED(failure): samba3.smbtorture_s3.LOCAL-RBTREE.smbtorture(none)
REASON: Exception: Exception: using seed 1716333987
host=foo share=bar user= myname=runner-jlguopmm-project-6378020-concurrent-0
Running LOCAL-RBTREE
run_local_rbtree: read1: 999 999, NT_STATUS_OK
run_local_rbtree: delete: 999 999, NT_STATUS_OK
run_local_rbtree: read2: 0 0, NT_STATUS_OK
TEST LOCAL-RBTREE FAILED!
LOCAL-RBTREE took 0.002706 secs

This has been flapping very occasionally for a long time:
https://lists.samba.org/archive/samba-technical/2016-March/112861.html

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
2024-05-31 04:22:36 +00:00
..
bench_pthreadpool.c
cmd_vfs.c smbd: Give source3/smbd/dir.c its own header file 2023-12-19 16:05:36 +00:00
denytest.c s3:torture: Fix code spelling 2023-07-19 09:58:37 +00:00
locktest2.c s3:libsmb: Pass memory context to cli_full_connection_creds() 2024-04-29 08:43:32 +00:00
mangle_test.c
msg_sink.c lib: Remove timeval_set() 2024-03-22 06:07:42 +00:00
msg_source.c lib: Remove timeval_set() 2024-03-22 06:07:42 +00:00
msgtest.c
nbench.c libsmb: Pass "flags" through cli_close_send() and pylibsmb 2023-10-10 08:19:29 +00:00
nbio.c
pdbtest.c s3:torture: Fix code spelling 2023-07-19 09:58:37 +00:00
proto.h CVE-2023-3961:s3:torture: Add test SMB2-INVALID-PIPENAME to show we allow bad pipenames with unix separators through to the UNIX domain socket code. 2023-10-10 14:49:39 +00:00
scanner.c
test_addrchange.c lib-addrchange: Change API to fill up if_index value from netlink msg 2024-04-16 23:51:45 +00:00
test_async_echo.c
test_authinfo_structs.c
test_buffersize.c
test_case_insensitive.c
test_chain3.c libsmb: Pass "flags" through cli_close_send() and pylibsmb 2023-10-10 08:19:29 +00:00
test_cleanup.c
test_ctdbd_conn.c
test_dbwrap_ctdb.c
test_dbwrap_do_locked.c
test_dbwrap_watch.c
test_g_lock.c
test_hidenewfiles.c
test_idmap_cache.c
test_idmap_tdb_common.c
test_matching.c
test_messaging_fd_passing.c s3:torture: Fix code spelling 2023-07-19 09:58:37 +00:00
test_messaging_read.c
test_messaging_send_all.c
test_namemap_cache.c
test_notify_online.c libsmb: Pass "flags" through cli_close_send() and pylibsmb 2023-10-10 08:19:29 +00:00
test_notify.c libsmb: Pass "flags" through cli_close_send() and pylibsmb 2023-10-10 08:19:29 +00:00
test_nttrans_create.c
test_nttrans_fsctl.c
test_oplock_cancel.c
test_posix_append.c
test_posix.c torture: Fix an error message 2024-03-12 13:31:31 +00:00
test_pthreadpool_tevent.c
test_readdir_timestamp.c
test_rpc_scale.c
test_smb1_dfs.c libsmb: Pass NTTIME to interpret_long_date() 2023-10-04 20:31:36 +00:00
test_smb2.c libsmb: Use the direct FSCC_FILE_ALL_INFORMATION define 2024-05-14 22:29:36 +00:00
test_smbsock_any_connect.c
test_tdb_validate.c
torture.c s3/torture: local_rbtree: avoid birthday collisions 2024-05-31 04:22:36 +00:00
utable.c
vfstest_chain.c
vfstest.c s3:utils: Use lpcfg_set_cmdline() in vfstest 2023-08-23 08:27:30 +00:00
vfstest.h smbd: Remove the offset argument from ReadDirName() 2023-06-13 23:33:39 +00:00
wbc_async.c
wbc_async.h
wscript_build