4628N/A * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. 1121N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1121N/A * This code is free software; you can redistribute it and/or modify it 1121N/A * under the terms of the GNU General Public License version 2 only, as 1121N/A * published by the Free Software Foundation. 1121N/A * This code is distributed in the hope that it will be useful, but WITHOUT 1121N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1121N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1121N/A * version 2 for more details (a copy is included in the LICENSE file that 1121N/A * You should have received a copy of the GNU General Public License version 1121N/A * 2 along with this work; if not, write to the Free Software Foundation, 1121N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 1121N/A * @summary verify handling of File.getPath() 4628N/A * @run shell TestFontFile.sh 4628N/A * When using jtreg this test needs to be run by shell script, 4628N/A * since otherwise jtreg reflectively invokes the main method 4628N/A * and the codebase for the purposes of the security manager 4628N/A * is that of the jtreg harness, not the codebase (class file location) 4628N/A * of this program, thus access to read to that location is not available. 4628N/A //String dir = System.getProperty("test.src"); 4628N/A //String classesDir = System.getProperty("test.classes"); 1121N/A throw new Error(
"Something wrong with test environment");