< prev index next >

test/jdk/com/sun/security/auth/login/ConfigFile/InconsistentError.java

Print this page
rev 59383 : [mq]: final

*** 1,7 **** /* ! * Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2001, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 56,75 **** ConfigFile config = new ConfigFile(); throw new SecurityException("test 2 failed"); } catch (SecurityException se) { if (se.getMessage().indexOf("No such file or directory") > 0) { System.out.println("test 2 succeeded"); - } else { - // if the OS is Solaris then this is an error; on windows - // this is not an error since the error message on windows - // is "The system cannot find the file specified " - // See bug 4450257 - - if (System.getProperty("os.name").equals("SunOS")) { - System.out.println("test 2 failed"); - throw se; - } } } System.setProperty("java.security.auth.login.config", "=file:${test.src}/InconsistentError.config"); --- 56,65 ----
< prev index next >