s4/torture: fix exit status of raw.bench-lookup
authorOleg Kravtsov <oleg@tuxera.com>
Fri, 6 Oct 2023 09:20:05 +0000 (12:20 +0300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 16 Oct 2023 02:01:17 +0000 (02:01 +0000)
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

source4/torture/raw/lookuprate.c

index 7c0251a0f7a8a2b631ef0b594d36cd8a3558cd2a..4b58df454e613ef94fe242bcad4795b1ece3c1f9 100644 (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,