7196677: diff compares same file to itself in PaddingTest regression test.
authorweijun
Fri, 07 Sep 2012 10:24:22 +0800
changeset 13786 dfe9a95e1c30
parent 13785 56dc8b1e89ba
child 13787 19d54bca65d7
7196677: diff compares same file to itself in PaddingTest regression test. Reviewed-by: xuelei
jdk/test/com/sun/crypto/provider/Cipher/DES/PaddingTest.java
--- 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");
         }