From 7e677a587bc271c87dc893ac48705a955d29a522 Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Fri, 7 Sep 2012 10:24:22 +0800 Subject: [PATCH] 7196677: diff compares same file to itself in PaddingTest regression test Reviewed-by: xuelei --- jdk/test/com/sun/crypto/provider/Cipher/DES/PaddingTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdk/test/com/sun/crypto/provider/Cipher/DES/PaddingTest.java b/jdk/test/com/sun/crypto/provider/Cipher/DES/PaddingTest.java index bbd6621447e..b33d2e0cd4e 100644 --- a/jdk/test/com/sun/crypto/provider/Cipher/DES/PaddingTest.java +++ b/jdk/test/com/sun/crypto/provider/Cipher/DES/PaddingTest.java @@ -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"); }