From: Oleg Kravtsov Date: Fri, 6 Oct 2023 09:20:05 +0000 (+0300) Subject: s4/torture: fix exit status of raw.bench-lookup X-Git-Tag: talloc-2.4.2~1295 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=6e862bd3690c041aa061ed8f7ee1d9207381674f;p=samba.git s4/torture: fix exit status of raw.bench-lookup Use correct value of 'result' when the test passes. Signed-off-by: Oleg Kravtsov Reviewed-by: Joseph Sutton Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Mon Oct 16 02:01:17 UTC 2023 on atb-devel-224 --- diff --git a/source4/torture/raw/lookuprate.c b/source4/torture/raw/lookuprate.c index 7c0251a0f7a..4b58df454e6 100644 --- a/source4/torture/raw/lookuprate.c +++ b/source4/torture/raw/lookuprate.c @@ -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,