diff options
author | Wu-cheng Li <wuchengli@google.com> | 2010-11-26 14:14:16 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2010-11-29 14:00:07 +0800 |
commit | 2ff6c061fe55ad46b192961f27379853c20362bc (patch) | |
tree | e4da984bc1a1da5091a396a17e79155b9436c906 /tests/src/com/android/camera/stress/SwitchPreview.java | |
parent | 559f5cf9f42c4983eaef9e6e55ff3ba7c406426a (diff) | |
download | LegacyCamera-2ff6c061fe55ad46b192961f27379853c20362bc.zip LegacyCamera-2ff6c061fe55ad46b192961f27379853c20362bc.tar.gz LegacyCamera-2ff6c061fe55ad46b192961f27379853c20362bc.tar.bz2 |
Log the exception stack so it is easier to debug.
Also remove unnecessary assertion.
Change-Id: If7a51ecf1f884d8cc8804b79b7d6c6242ee626ed
Diffstat (limited to 'tests/src/com/android/camera/stress/SwitchPreview.java')
-rwxr-xr-x | tests/src/com/android/camera/stress/SwitchPreview.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/src/com/android/camera/stress/SwitchPreview.java b/tests/src/com/android/camera/stress/SwitchPreview.java index 0ffe0ac..6af915e 100755 --- a/tests/src/com/android/camera/stress/SwitchPreview.java +++ b/tests/src/com/android/camera/stress/SwitchPreview.java @@ -72,7 +72,7 @@ public class SwitchPreview extends ActivityInstrumentationTestCase2 <VideoCamera mfstream = new FileWriter(CAMERA_TEST_OUTPUT_FILE, true); mOut = new BufferedWriter(mfstream); } catch (Exception e){ - assertTrue("Camera Switch Mode",false); + assertTrue("Camera Switch Mode", false); } } @@ -108,8 +108,7 @@ public class SwitchPreview extends ActivityInstrumentationTestCase2 <VideoCamera mOut.flush(); } } catch (Exception e){ - Log.v(TAG, e.toString()); + Log.v(TAG, "Got exception", e); } - assertTrue("testSwitchMode",true); } } |