test/script/nosecurity/JDK-8080087.js

Sun, 24 Jun 2018 23:15:05 +0100

author
alitvinov
date
Sun, 24 Jun 2018 23:15:05 +0100
changeset 2351
41ac91662b75
parent 1398
2f1b9f4daec1
permissions
-rw-r--r--

Merge

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

mercurial