diff --git a/tests/src/texture/hipGetAlgntoffset2D.cpp b/tests/src/texture/hipGetAlgntoffset2D.cpp index a164222e8c..213c49caaa 100644 --- a/tests/src/texture/hipGetAlgntoffset2D.cpp +++ b/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; }