7196677: diff compares same file to itself in PaddingTest regression test

Reviewed-by: xuelei
This commit is contained in:
Weijun Wang 2012-09-07 10:24:22 +08:00
parent 1e258cff36
commit 7e677a587b

View File

@ -195,7 +195,7 @@ public class PaddingTest {
private static void diff(String fname1, String fname2) throws Exception {
if (!Arrays.equals(Files.readAllBytes(Paths.get(fname1)),
Files.readAllBytes(Paths.get(fname1)))) {
Files.readAllBytes(Paths.get(fname2)))) {
throw new Exception(
"files " + fname1 + " and " + fname2 + " differ");
}