Merge "Additional logging to track down RSRuntimeException issues." into klp-dev
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/RSBaseCompute.java b/tests/tests/renderscript/src/android/renderscript/cts/RSBaseCompute.java
index 6eba266..d68e628 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/RSBaseCompute.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/RSBaseCompute.java
@@ -20,6 +20,7 @@
import android.renderscript.Allocation;
import android.renderscript.Element;
import android.renderscript.RSRuntimeException;
+import android.util.Log;
/**
* Base RenderScript test class. This class provides a message handler and a
@@ -98,6 +99,8 @@
try {
RSUtils.forEach(this, testid, mAllocationIn, mAllocationOut);
} catch (RSRuntimeException e) {
+ Log.e("RenderscriptCTS", "Caught RSRuntimeException: " +
+ e.getMessage());
}
float[] outArray = makeOutArray(INPUTSIZE * outStride);
mAllocationOut.copyTo(outArray);