From 07bac479abfaa7f2b018be73f5357a35500aa73c Mon Sep 17 00:00:00 2001 From: Mateusz Hoppe Date: Wed, 28 Feb 2024 11:33:19 +0000 Subject: [PATCH] test: print pointers on fail in commandlist_immediate test Signed-off-by: Mateusz Hoppe --- .../test/black_box_tests/zello_commandlist_immediate.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/level_zero/core/test/black_box_tests/zello_commandlist_immediate.cpp b/level_zero/core/test/black_box_tests/zello_commandlist_immediate.cpp index 91e791cca9..413ef839f3 100644 --- a/level_zero/core/test/black_box_tests/zello_commandlist_immediate.cpp +++ b/level_zero/core/test/black_box_tests/zello_commandlist_immediate.cpp @@ -81,6 +81,12 @@ void testAppendMemoryCopy(ze_context_handle_t &context, ze_device_handle_t &devi // Validate stack and ze buffers have the original data from heapBuffer validRet = LevelZeroBlackBoxTests::validate(heapBuffer, stackBuffer, allocSize); + if (!validRet) { + std::cerr << "Data mismatches found!\n"; + std::cerr << "heapBuffer == " << static_cast(heapBuffer) << "\n"; + std::cerr << "stackBuffer == " << static_cast(stackBuffer) << std::endl; + } + delete[] heapBuffer; SUCCESS_OR_TERMINATE(zeMemFree(context, zeBuffer)); if (sharedCmdList == nullptr) {