changeset 5844:833f4630f3a1

7196677: diff compares same file to itself in PaddingTest regression test. Reviewed-by: xuelei
author weijun
date Fri, 07 Sep 2012 10:24:22 +0800
parents 8c6895afe204
children d5d24c08f0dc
files test/com/sun/crypto/provider/Cipher/DES/PaddingTest.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/com/sun/crypto/provider/Cipher/DES/PaddingTest.java	Thu Sep 06 13:16:19 2012 -0400
+++ b/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");
         }