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().
Dieser Commit ist enthalten in:
kjayapra-amd
2019-10-16 01:22:15 -04:00
committet von Maneesh Gupta
Ursprung d9d6374a63
Commit 26c3b4f985
Normale Datei → Ausführbare Datei
+2 -2
Datei anzeigen
@@ -30,7 +30,7 @@ THE SOFTWARE.
#define fileName "tex2dKernel.code"
texture<float, 2, hipReadModeElementType> 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) {