Skip to content

Commit 697bf38

Browse files
authored
fix: add missing command list reset in test_module.cpp (#314)
Related-To: HSD-13013924121 Signed-off-by: Jaroslaw Warchulski <[email protected]>
1 parent 0cb9472 commit 697bf38

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

conformance_tests/core/test_module/src/test_module.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,19 @@ void zeModuleCreateTests::
186186
*typed_global_pointer = expected_value;
187187
lzt::append_memory_copy(bundle.list, global_pointer, memory,
188188
sizeof(expected_value));
189-
lzt::close_command_list(bundle.list);
189+
if (!is_immediate) {
190+
lzt::close_command_list(bundle.list);
191+
}
190192
lzt::execute_and_sync_command_bundle(bundle, UINT64_MAX);
191193
*typed_global_pointer = ~expected_value;
194+
if (!is_immediate) {
195+
lzt::reset_command_list(bundle.list);
196+
}
192197
lzt::append_memory_copy(bundle.list, memory, global_pointer,
193198
sizeof(expected_value));
194-
lzt::close_command_list(bundle.list);
199+
if (!is_immediate) {
200+
lzt::close_command_list(bundle.list);
201+
}
195202
lzt::execute_and_sync_command_bundle(bundle, UINT64_MAX);
196203
EXPECT_EQ(expected_value, *typed_global_pointer);
197204
lzt::free_memory(memory);

0 commit comments

Comments
 (0)