mhaupt@1398: /* mhaupt@1398: * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. mhaupt@1398: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mhaupt@1398: * mhaupt@1398: * This code is free software; you can redistribute it and/or modify it mhaupt@1398: * under the terms of the GNU General Public License version 2 only, as mhaupt@1398: * published by the Free Software Foundation. mhaupt@1398: * mhaupt@1398: * This code is distributed in the hope that it will be useful, but WITHOUT mhaupt@1398: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mhaupt@1398: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mhaupt@1398: * version 2 for more details (a copy is included in the LICENSE file that mhaupt@1398: * accompanied this code). mhaupt@1398: * mhaupt@1398: * You should have received a copy of the GNU General Public License version mhaupt@1398: * 2 along with this work; if not, write to the Free Software Foundation, mhaupt@1398: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mhaupt@1398: * mhaupt@1398: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA mhaupt@1398: * or visit www.oracle.com if you need additional information or have any mhaupt@1398: * questions. mhaupt@1398: */ mhaupt@1398: mhaupt@1398: /** mhaupt@1398: * JDK-8080087: Nashorn $ENV.PWD is originally undefined mhaupt@1398: * mhaupt@1398: * This is to ensure that $ENV.PWD is correctly set on Windows as well as on all mhaupt@1398: * other platforms. mhaupt@1398: * mhaupt@1398: * @test mhaupt@1398: * @option -scripting mhaupt@1398: * @run mhaupt@1398: */ mhaupt@1398: mhaupt@1398: if (typeof($ENV.PWD) === 'undefined') { mhaupt@1398: fail('$ENV.PWD is undefined') mhaupt@1398: } mhaupt@1398: