Test7029048.java revision 4651
4651N/A * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3986N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3986N/A * This code is free software; you can redistribute it and/or modify it 3986N/A * under the terms of the GNU General Public License version 2 only, as 3986N/A * published by the Free Software Foundation. 3986N/A * This code is distributed in the hope that it will be useful, but WITHOUT 3986N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3986N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3986N/A * version 2 for more details (a copy is included in the LICENSE file that 3986N/A * You should have received a copy of the GNU General Public License version 3986N/A * 2 along with this work; if not, write to the Free Software Foundation, 3986N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3986N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3986N/A * or visit www.oracle.com if you need additional information or have any 3986N/A * @summary Checks for LD_LIBRARY_PATH on *nixes 3986N/A * 7029048: test for LD_LIBRARY_PATH set to different paths pointing which may 3986N/A * contain a libjvm.so and may not, but we test to ensure that the launcher 3986N/A * behaves correctly in all cases. 3986N/A // used primarily to test the solaris variants in dual mode 3986N/A // only for a dual-mode system 3986N/A * empty or null strings can confuse the ProcessBuilder. A null flag 3986N/A * indicates that the appropriate data model is enforced on the chosen 3986N/A // no cross launch, ie. no change to the data model. 3986N/A * the envValue can never be null, since the test code should always 3986N/A * A crucial piece, specifies what we should expect, given the conditions. 3986N/A * That is for a given enum type, the value indicates how many absolute 3986N/A * environment variables that can be expected. This value is used to base 3986N/A * the actual expected values by adding the set environment variable usually 3986N/A * it is 1, but it could be more if the test wishes to set more paths in 3986N/A // copy the files into the directory structures 3986N/A // does not matter if it is client or a server 3986N/A // does not matter if the arch do not match either 3986N/A * Case 1: set the server path 3986N/A * Case 2: repeat with client path 3986N/A continue;
// nothing more to do for Linux 3986N/A // Tests applicable only to solaris. 3986N/A // initialize test variables for dual mode operations 3986N/A * Case 3: set the appropriate LLP_XX flag, 3986N/A * java32 -d32, LLP_32 is relevant, LLP_64 is ignored 3986N/A * java64 -d64, LLP_64 is relevant, LLP_32 is ignored 3986N/A * Case 4: we are in dual mode environment, running 64-bit then 3986N/A * we have the following scenarios: 3986N/A * java32 -d64, LLP_64 is relevant, LLP_32 is ignored 3986N/A * java64 -d32, LLP_32 is relevant, LLP_64 is ignored 3986N/A // create our test jar first 3986N/A "all tests did not run, expected " +
15 +
" got " +
passes);
3986N/A "all tests did not run, expected " +
9 +
" got " +
passes);
3986N/A "all tests did not run, expected " +
6 +
" got " +
passes);