Skip to content

Commit

Permalink
Remove workaround for an Android bug that was fixed at some point bef…
Browse files Browse the repository at this point in the history
…ore Lollipop.

And update the link to the bug that wasn't fixed until later.

RELNOTES=n/a
PiperOrigin-RevId: 634827341
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed May 17, 2024
1 parent dd2fac8 commit f0c7099
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,6 @@ public void testDivNonZero() {
private static final BigInteger BAD_FOR_ANDROID_P = new BigInteger("-9223372036854775808");
private static final BigInteger BAD_FOR_ANDROID_Q = new BigInteger("-1");

private static final BigInteger BAD_FOR_GINGERBREAD_P = new BigInteger("-9223372036854775808");
private static final BigInteger BAD_FOR_GINGERBREAD_Q = new BigInteger("-4294967296");

@GwtIncompatible // TODO
@AndroidIncompatible // slow
public void testDivNonZeroExact() {
Expand All @@ -449,11 +446,7 @@ public void testDivNonZeroExact() {
for (BigInteger p : NONZERO_BIGINTEGER_CANDIDATES) {
for (BigInteger q : NONZERO_BIGINTEGER_CANDIDATES) {
if (isAndroid && p.equals(BAD_FOR_ANDROID_P) && q.equals(BAD_FOR_ANDROID_Q)) {
// https://code.google.com/p/android/issues/detail?id=196555
continue;
}
if (isAndroid && p.equals(BAD_FOR_GINGERBREAD_P) && q.equals(BAD_FOR_GINGERBREAD_Q)) {
// Works fine under Marshmallow, so I haven't filed a bug.
// https://issuetracker.google.com/issues/37074172
continue;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,6 @@ public void testDivNonZero() {
private static final BigInteger BAD_FOR_ANDROID_P = new BigInteger("-9223372036854775808");
private static final BigInteger BAD_FOR_ANDROID_Q = new BigInteger("-1");

private static final BigInteger BAD_FOR_GINGERBREAD_P = new BigInteger("-9223372036854775808");
private static final BigInteger BAD_FOR_GINGERBREAD_Q = new BigInteger("-4294967296");

@GwtIncompatible // TODO
@AndroidIncompatible // slow
public void testDivNonZeroExact() {
Expand All @@ -449,11 +446,7 @@ public void testDivNonZeroExact() {
for (BigInteger p : NONZERO_BIGINTEGER_CANDIDATES) {
for (BigInteger q : NONZERO_BIGINTEGER_CANDIDATES) {
if (isAndroid && p.equals(BAD_FOR_ANDROID_P) && q.equals(BAD_FOR_ANDROID_Q)) {
// https://code.google.com/p/android/issues/detail?id=196555
continue;
}
if (isAndroid && p.equals(BAD_FOR_GINGERBREAD_P) && q.equals(BAD_FOR_GINGERBREAD_Q)) {
// Works fine under Marshmallow, so I haven't filed a bug.
// https://issuetracker.google.com/issues/37074172
continue;
}

Expand Down

0 comments on commit f0c7099

Please sign in to comment.