From b89f2310b863423eca5d6a21c86ff4e7a5a8a2bf Mon Sep 17 00:00:00 2001 From: lthakur Date: Wed, 11 Jul 2018 11:53:16 +0530 Subject: [PATCH] Update hipGetChanDesc.cpp [ROCm/clr commit: 5ba01d5033ffb23d86dd014373e3b46eab399aff] --- projects/clr/hipamd/tests/src/texture/hipGetChanDesc.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/projects/clr/hipamd/tests/src/texture/hipGetChanDesc.cpp b/projects/clr/hipamd/tests/src/texture/hipGetChanDesc.cpp index a3e8c7c3e7..254392ffd2 100644 --- a/projects/clr/hipamd/tests/src/texture/hipGetChanDesc.cpp +++ b/projects/clr/hipamd/tests/src/texture/hipGetChanDesc.cpp @@ -21,7 +21,7 @@ THE SOFTWARE. */ /* HIT_START - * BUILD: %t %s ../test_common.cpp + * BUILD: %t %s ../test_common.cpp EXCLUDE_HIP_PLATFORM nvcc * RUN: %t * HIT_END */ @@ -35,10 +35,10 @@ using namespace std; bool testResult = true; -void runTest(void); +bool runTest(void); int main(int argc, char** argv) { - runTest(); + testResult=runTest(); if (testResult) { passed(); @@ -48,7 +48,7 @@ int main(int argc, char** argv) { } -void runTest() +bool runTest() { hipChannelFormatDesc chan_test,chan_desc=hipCreateChannelDesc(32,0,0,0,hipChannelFormatKindSigned); @@ -63,4 +63,5 @@ else testResult=false; HIPCHECK(hipFreeArray(hipArray)); +return testResult; }