summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGuang Zhu <guangzhu@google.com>2011-09-15 01:28:17 -0700
committerGuang Zhu <guangzhu@google.com>2011-09-15 01:28:17 -0700
commit0882eb05af02616cac5cfd82d9039c9e18d029d8 (patch)
treeff6f2a4e285388e9b3517f3bb5dedc020e544b93 /tests
parent89dea78603b7669e1aa9314bd14ccfb46f04afdd (diff)
downloadframeworks_base-0882eb05af02616cac5cfd82d9039c9e18d029d8.zip
frameworks_base-0882eb05af02616cac5cfd82d9039c9e18d029d8.tar.gz
frameworks_base-0882eb05af02616cac5cfd82d9039c9e18d029d8.tar.bz2
log stack trace when finish() or onDestroy() is called
Some supurious calls to these functions when tests are still running are observed. Add more logging to see what's the caller. Change-Id: I9254c3639bcb8619be39bfbc6981fae5bf5e7efa
Diffstat (limited to 'tests')
-rw-r--r--tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java b/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java
index f8c32dd..4ba2e18 100644
--- a/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java
+++ b/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java
@@ -286,11 +286,23 @@ public class TestShellActivity extends Activity implements LayoutTestController
mWebView.stopLoading();
}
+
+ //TODO: remove. this is temporary for bug investigation
+ @Override
+ public void finish() {
+ Exception e = new Exception("finish() call stack");
+ Log.d(LOGTAG, "finish stack trace", e);
+ super.finish();
+ }
+
@Override
protected void onDestroy() {
- super.onDestroy();
+ //TODO: remove exception log. this is temporary for bug investigation
+ Exception e = new Exception("onDestroy stack trace");
+ Log.d(LOGTAG, "onDestroy stack trace", e);
mWebView.destroy();
mWebView = null;
+ super.onDestroy();
}
@Override