7196677: diff compares same file to itself in PaddingTest regression test.
Reviewed-by: xuelei
--- a/jdk/test/com/sun/crypto/provider/Cipher/DES/PaddingTest.java Thu Sep 06 13:16:19 2012 -0400
+++ b/jdk/test/com/sun/crypto/provider/Cipher/DES/PaddingTest.java Fri Sep 07 10:24:22 2012 +0800
@@ -195,7 +195,7 @@
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");
}