nosecurity.js revision 877:cf4d2252d444
1152570Sru/* 2152324Sdavidxu * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. 3152297Sdavidxu * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4152297Sdavidxu * 5152297Sdavidxu * This code is free software; you can redistribute it and/or modify it 6152297Sdavidxu * under the terms of the GNU General Public License version 2 only, as 7152297Sdavidxu * published by the Free Software Foundation. 8152297Sdavidxu * 9152297Sdavidxu * This code is distributed in the hope that it will be useful, but WITHOUT 10152297Sdavidxu * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11152297Sdavidxu * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12152297Sdavidxu * version 2 for more details (a copy is included in the LICENSE file that 13152297Sdavidxu * accompanied this code). 14152297Sdavidxu * 15152297Sdavidxu * You should have received a copy of the GNU General Public License version 16152297Sdavidxu * 2 along with this work; if not, write to the Free Software Foundation, 17152297Sdavidxu * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18152297Sdavidxu * 19152297Sdavidxu * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20152297Sdavidxu * or visit www.oracle.com if you need additional information or have any 21152297Sdavidxu * questions. 22152297Sdavidxu */ 23152297Sdavidxu 24152297Sdavidxu/** 25152297Sdavidxu * 8043443: Test framework changes to run script tests without security manager 26152297Sdavidxu * @test 27152297Sdavidxu * @run 28152297Sdavidxu */ 29152297Sdavidxu 30152570Sruvar System = Java.type("java.lang.System"); 31152297Sdavidxu 32152297Sdavidxuif (System.securityManager != null) { 33152297Sdavidxu fail("SecurityManager is set!"); 34152297Sdavidxu} 35152570Sru