Merge "More robust tests." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5993338b0b
@@ -197,10 +197,11 @@ public class PackageManagerTests extends AndroidTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Intent getResult() {
|
public Intent getResult() {
|
||||||
try {
|
while (true) {
|
||||||
return mResult.take();
|
try {
|
||||||
} catch (InterruptedException e) {
|
return mResult.take();
|
||||||
throw new RuntimeException(e);
|
} catch (InterruptedException e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user