From 1d52a72809c840db770ca0a0a92e41aa4343aa0c Mon Sep 17 00:00:00 2001 From: Kamil Diedrich Date: Thu, 4 Nov 2021 17:01:02 +0000 Subject: [PATCH] Return proper result for BB tests Signed-off-by: Kamil Diedrich --- level_zero/core/test/black_box_tests/zello_copy_fence.cpp | 2 +- level_zero/core/test/black_box_tests/zello_copy_image.cpp | 2 +- level_zero/core/test/black_box_tests/zello_copy_only.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/level_zero/core/test/black_box_tests/zello_copy_fence.cpp b/level_zero/core/test/black_box_tests/zello_copy_fence.cpp index e25745ddf7..0b073d5c29 100644 --- a/level_zero/core/test/black_box_tests/zello_copy_fence.cpp +++ b/level_zero/core/test/black_box_tests/zello_copy_fence.cpp @@ -105,5 +105,5 @@ int main(int argc, char *argv[]) { SUCCESS_OR_TERMINATE(zeContextDestroy(context)); std::cout << "\nZello Copy Fence Results validation " << (outputValidationSuccessful ? "PASSED" : "FAILED") << "\n"; - return 0; + return (outputValidationSuccessful ? 0 : 1); } diff --git a/level_zero/core/test/black_box_tests/zello_copy_image.cpp b/level_zero/core/test/black_box_tests/zello_copy_image.cpp index 3e2f4e3754..861ed7fee6 100644 --- a/level_zero/core/test/black_box_tests/zello_copy_image.cpp +++ b/level_zero/core/test/black_box_tests/zello_copy_image.cpp @@ -124,5 +124,5 @@ int main(int argc, char *argv[]) { SUCCESS_OR_TERMINATE(zeContextDestroy(context)); std::cout << "\nZello Copy Image Results validation " << (outputValidationSuccessful ? "PASSED" : "FAILED") << "\n"; - return 0; + return (outputValidationSuccessful ? 0 : 1); } diff --git a/level_zero/core/test/black_box_tests/zello_copy_only.cpp b/level_zero/core/test/black_box_tests/zello_copy_only.cpp index 3ca1a3c64f..05646a34a3 100644 --- a/level_zero/core/test/black_box_tests/zello_copy_only.cpp +++ b/level_zero/core/test/black_box_tests/zello_copy_only.cpp @@ -559,5 +559,5 @@ int main(int argc, char *argv[]) { SUCCESS_OR_TERMINATE(zeContextDestroy(context)); std::cout << "\nZello Copy Only Results validation " << (outputValidationSuccessful ? "PASSED" : "FAILED") << "\n"; - return 0; + return (outputValidationSuccessful ? 0 : 1); }