From 1cc64ab8d34ff6440bd0904d5a6df5a5dd60e80b Mon Sep 17 00:00:00 2001 From: lthakur Date: Tue, 17 Jul 2018 13:35:22 +0530 Subject: [PATCH] Update hipGetAlgntoffset2D.cpp Removed bool variable 'testResult' from global scope and confined it to the function. [ROCm/hip commit: feaa30076e613f33edddfc015dd04753d321f31f] --- projects/hip/tests/src/texture/hipGetAlgntoffset2D.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/projects/hip/tests/src/texture/hipGetAlgntoffset2D.cpp b/projects/hip/tests/src/texture/hipGetAlgntoffset2D.cpp index a164222e8c..213c49caaa 100644 --- a/projects/hip/tests/src/texture/hipGetAlgntoffset2D.cpp +++ b/projects/hip/tests/src/texture/hipGetAlgntoffset2D.cpp @@ -35,12 +35,10 @@ using namespace std; texture tex; -bool testResult = true; - bool runTest(void); int main(int argc, char** argv) { - testResult=runTest(); + bool testResult=runTest(); if (testResult) { passed(); @@ -81,5 +79,5 @@ HIPCHECK(hipGetTextureAlignmentOffset(&offset,&tex)); HIPCHECK(hipUnbindTexture(&tex)); HIPCHECK(hipFreeArray(hipArray)); -return testResult; +return true; }