11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
25
26 #
27 # @test
28 # @bug 4981536
29 # @summary TTY: .jdbrc is read twice if jdb is run in the user's home dir
30 # @author jjh
31 # @run shell JdbReadTwiceTest.sh
32
33 #Set appropriate jdk
34 if [ ! -z "$TESTJAVA" ] ; then
35 jdk="$TESTJAVA"
36 else
37 echo "--Error: TESTJAVA must be defined as the pathname of a jdk to test."
38 exit 1
39 fi
40
41 if [ -z "$TESTCLASSES" ] ; then
42 echo "--Error: TESTCLASSES must be defined."
43 exit 1
44 fi
45
46 case `uname -s` in
47 Linux)
48 # Need this to convert to the /.automount/... form which
49 # is what jdb will report when it reads an init file.
50 echo TESTCLASSES=$TESTCLASSES
|
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
25
26 #
27 # @test
28 # @bug 4981536
29 # @summary TTY: .jdbrc is read twice if jdb is run in the user's home dir
30 # @author jjh
31 #
32 # @run shell JdbReadTwiceTest.sh
33
34 #Set appropriate jdk
35 if [ ! -z "$TESTJAVA" ] ; then
36 jdk="$TESTJAVA"
37 else
38 echo "--Error: TESTJAVA must be defined as the pathname of a jdk to test."
39 exit 1
40 fi
41
42 if [ -z "$TESTCLASSES" ] ; then
43 echo "--Error: TESTCLASSES must be defined."
44 exit 1
45 fi
46
47 case `uname -s` in
48 Linux)
49 # Need this to convert to the /.automount/... form which
50 # is what jdb will report when it reads an init file.
51 echo TESTCLASSES=$TESTCLASSES
|