HADOOP-10843. TestGridmixRecord unit tests failure on PowerPC (Jinghui Wang via Colin Patrick McCabe)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1617861 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ce1df05977
commit
0e37868f7e
|
@ -140,6 +140,9 @@ Release 2.6.0 - UNRELEASED
|
||||||
HADOOP-10966. Hadoop Common native compilation broken in windows.
|
HADOOP-10966. Hadoop Common native compilation broken in windows.
|
||||||
(David Villegas via Arpit Agarwal)
|
(David Villegas via Arpit Agarwal)
|
||||||
|
|
||||||
|
HADOOP-10843. TestGridmixRecord unit tests failure on PowerPC (Jinghui Wang
|
||||||
|
via Colin Patrick McCabe)
|
||||||
|
|
||||||
Release 2.5.0 - UNRELEASED
|
Release 2.5.0 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -140,10 +140,10 @@ public class TestGridmixRecord {
|
||||||
final int chk = WritableComparator.compareBytes(
|
final int chk = WritableComparator.compareBytes(
|
||||||
out1.getData(), 0, out1.getLength(),
|
out1.getData(), 0, out1.getLength(),
|
||||||
out2.getData(), 0, out2.getLength());
|
out2.getData(), 0, out2.getLength());
|
||||||
assertEquals(chk, x.compareTo(y));
|
assertEquals(Integer.signum(chk), Integer.signum(x.compareTo(y)));
|
||||||
assertEquals(chk, cmp.compare(
|
assertEquals(Integer.signum(chk), Integer.signum(cmp.compare(
|
||||||
out1.getData(), 0, out1.getLength(),
|
out1.getData(), 0, out1.getLength(),
|
||||||
out2.getData(), 0, out2.getLength()));
|
out2.getData(), 0, out2.getLength())));
|
||||||
// write second copy, compare eq
|
// write second copy, compare eq
|
||||||
final int s1 = out1.getLength();
|
final int s1 = out1.getLength();
|
||||||
x.write(out1);
|
x.write(out1);
|
||||||
|
@ -153,8 +153,8 @@ public class TestGridmixRecord {
|
||||||
y.write(out2);
|
y.write(out2);
|
||||||
assertEquals(0, cmp.compare(out2.getData(), 0, s2,
|
assertEquals(0, cmp.compare(out2.getData(), 0, s2,
|
||||||
out2.getData(), s2, out2.getLength() - s2));
|
out2.getData(), s2, out2.getLength() - s2));
|
||||||
assertEquals(chk, cmp.compare(out1.getData(), 0, s1,
|
assertEquals(Integer.signum(chk), Integer.signum(cmp.compare(out1.getData(), 0, s1,
|
||||||
out2.getData(), s2, out2.getLength() - s2));
|
out2.getData(), s2, out2.getLength() - s2)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue