From 48e4f036656d5eee73e27ab53b0187264a017415 Mon Sep 17 00:00:00 2001 From: lthakur Date: Wed, 11 Jul 2018 11:51:08 +0530 Subject: [PATCH] Update hipGetAlgntoffset2D.cpp [ROCm/clr commit: b3b198f7450b6da775dfcb1e5bad8a8c2a2d664d] --- .../clr/hipamd/tests/src/texture/hipGetAlgntoffset2D.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/projects/clr/hipamd/tests/src/texture/hipGetAlgntoffset2D.cpp b/projects/clr/hipamd/tests/src/texture/hipGetAlgntoffset2D.cpp index ead492dbfc..34376a0a76 100644 --- a/projects/clr/hipamd/tests/src/texture/hipGetAlgntoffset2D.cpp +++ b/projects/clr/hipamd/tests/src/texture/hipGetAlgntoffset2D.cpp @@ -37,10 +37,10 @@ texture tex; bool testResult = true; -void runTest(void); +bool runTest(void); int main(int argc, char** argv) { - runTest(); + testResult=runTest(); if (testResult) { passed(); @@ -50,7 +50,7 @@ int main(int argc, char** argv) { } -void runTest() +bool runTest() { int val[R][C],i,j; @@ -81,4 +81,5 @@ HIPCHECK(hipGetTextureAlignmentOffset(&offset,&tex)); HIPCHECK(hipUnbindTexture(&tex)); HIPCHECK(hipFreeArray(hipArray)); +return testResult; }