From fbb98f49508361c039dc1cd01bb7234ce7e1bf7c Mon Sep 17 00:00:00 2001 From: kjayapra-amd <54370791+kjayapra-amd@users.noreply.github.com> Date: Wed, 16 Oct 2019 01:22:15 -0400 Subject: [PATCH] Use the correct return type in runTest in 11_texture_driver sample. (#1546) Fixes SWDEV-203394. Currently in runTest() returns true, even if the texture reference copy does not happen. Using the existing testResult Flag to return from runTest(). --- samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp diff --git a/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp b/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp old mode 100644 new mode 100755 index 2cb9877cac..b3c1ef5d0c --- a/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp +++ b/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp @@ -30,7 +30,7 @@ THE SOFTWARE. #define fileName "tex2dKernel.code" texture tex; -bool testResult = false; +bool testResult = true; #define HIP_CHECK(cmd) \ { \ @@ -126,7 +126,7 @@ bool runTest(int argc, char** argv) { } hipFree(dData); hipFreeArray(array); - return true; + return testResult; } int main(int argc, char** argv) {