1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

s4/torture: fix exit status of raw.bench-lookup

Use correct value of 'result' when the test passes.

Signed-off-by: Oleg Kravtsov <oleg@tuxera.com>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Oct 16 02:01:17 UTC 2023 on atb-devel-224
This commit is contained in:
Oleg Kravtsov 2023-10-06 12:20:05 +03:00 committed by Andrew Bartlett
parent b76e184c07
commit 6e862bd369

View File

@ -285,6 +285,7 @@ bool torture_bench_lookup(struct torture_context *torture)
* accumulated and figure out whether the lookups took constant
* time of not.
*/
result = true;
for (i = 0; i < ARRAY_SIZE(records); ++i) {
if (!fuzzily_equal(records[0].querypath_persec,
records[i].querypath_persec,