7194472: FileKeyTab.java test fails on Windows
authorweijun
Tue, 28 Aug 2012 17:25:07 +0800
changeset 13592 40eb93eb6975
parent 13591 db0d8946475b
child 13593 13b8e330bc78
7194472: FileKeyTab.java test fails on Windows Reviewed-by: alanb
jdk/test/sun/security/krb5/auto/FileKeyTab.java
--- a/jdk/test/sun/security/krb5/auto/FileKeyTab.java	Mon Aug 27 10:58:40 2012 -0700
+++ b/jdk/test/sun/security/krb5/auto/FileKeyTab.java	Tue Aug 28 17:25:07 2012 +0800
@@ -37,9 +37,8 @@
 public class FileKeyTab {
 
     public static void main(String[] args) throws Exception {
-
         new OneKDC(null).writeJAASConf();
-        String ktab = new File(OneKDC.KTAB).getAbsolutePath();
+        String ktab = new File(OneKDC.KTAB).getAbsolutePath().replace('\\', '/');
         File f = new File(OneKDC.JAAS_CONF);
         try (FileOutputStream fos = new FileOutputStream(f)) {
             fos.write((