From 398fa74da0cd10d1f405eeeb005a853bb75491cf Mon Sep 17 00:00:00 2001 From: Andrew Mann Date: Mon, 25 Mar 2013 21:08:54 -0500 Subject: [PATCH] Replace \r\n with system property line.separator Implementing change as suggested by vjuranek --- core/src/test/java/hudson/util/SecretRewriterTest.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/java/hudson/util/SecretRewriterTest.groovy b/core/src/test/java/hudson/util/SecretRewriterTest.groovy index 813daf10ec..9285f0bcdd 100644 --- a/core/src/test/java/hudson/util/SecretRewriterTest.groovy +++ b/core/src/test/java/hudson/util/SecretRewriterTest.groovy @@ -52,7 +52,7 @@ class SecretRewriterTest { def f = File.createTempFile("test", "xml", tmp.root) f.text = before sr.rewrite(f,null) - assert after.replaceAll("\r\n", "\n").trim()==f.text.replaceAll("\r\n", "\n").trim() + assert after.replaceAll(System.getProperty("line.separator"), "\n").trim()==f.text.replaceAll(System.getProperty("line.separator"), "\n").trim() } String encryptOld(str) {