diff --git a/src/vos/tests/vts_wal.c b/src/vos/tests/vts_wal.c index 46cd6d120e9..029be44b2bc 100644 --- a/src/vos/tests/vts_wal.c +++ b/src/vos/tests/vts_wal.c @@ -1,5 +1,5 @@ /** - * (C) Copyright 2022-2023 Intel Corporation. + * (C) Copyright 2022-2024 Intel Corporation. * * SPDX-License-Identifier: BSD-2-Clause-Patent */ @@ -280,6 +280,9 @@ wal_tst_pool_cont(void **state) vos_pool_info_t pool_info1 = { 0 }, pool_info2 = { 0 }; int rc; + if (arg->wta_no_replay) + FAULT_INJECTION_REQUIRED(); + uuid_generate(pool_id); uuid_generate(cont_id); @@ -457,6 +460,9 @@ wal_kv_basic(void **state) unsigned int small_sz = 16, large_sz = 8192; int i; + if (arg->no_replay) + FAULT_INJECTION_REQUIRED(); + oid = dts_unit_oid_gen(0, 0); dts_key_gen(dkey, UPDATE_DKEY_SIZE, UPDATE_DKEY); @@ -799,6 +805,9 @@ wal_io_multiple_updates(void **state) char *up, *f, *ak, *dk; int i, j, rc = 0; + if (arg->fail_checkpoint || arg->no_replay || arg->fail_replay) + FAULT_INJECTION_REQUIRED(); + num_keys = WAL_IO_MULTI_KEYS; if (arg->fail_checkpoint) num_keys = WAL_IO_MULTI_KEYS * 4;