am 25be2c72: am e0537f18: Merge "Fix of tearDown() in SingleLaunchActivityTestCase."

* commit '25be2c725eba1c94c7fc700e37b194fdcd83a1fb':
  Fix of tearDown() in SingleLaunchActivityTestCase.
This commit is contained in:
Jean-Baptiste Queru
2011-02-28 10:18:30 -08:00
committed by Android Git Automerger

View File

@@ -75,7 +75,7 @@ public abstract class SingleLaunchActivityTestCase<T extends Activity>
protected void tearDown() throws Exception {
// If it is the last test case, call finish on the activity.
sTestCaseCounter --;
if (sTestCaseCounter == 1) {
if (sTestCaseCounter == 0) {
sActivity.finish();
}
super.tearDown();