提交 30d6c70c 编写于 作者: K kshefov

8030640: [TEST_BUG]...

8030640: [TEST_BUG] java/awt/Toolkit/Headless/WrappedToolkitTest/WrappedToolkitTest.sh fails with exit code 2
Reviewed-by: pchelko, serb, anthony
上级 276cadb6
#!/bin/ksh -p #!/bin/ksh -p
# #
# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. # Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# #
# This code is free software; you can redistribute it and/or modify it # This code is free software; you can redistribute it and/or modify it
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
# #
# @test # @test
# @bug 6282388 # @bug 6282388 8030640
# @summary Tests that AWT use correct toolkit to be wrapped into HeadlessToolkit # @summary Tests that AWT use correct toolkit to be wrapped into HeadlessToolkit
# @author artem.ananiev@sun.com: area=awt.headless # @author artem.ananiev@sun.com: area=awt.headless
# @compile TestWrapped.java # @compile TestWrapped.java
...@@ -59,30 +59,14 @@ pass() ...@@ -59,30 +59,14 @@ pass()
# Checking for proper OS # Checking for proper OS
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS ) SunOS | Linux | Darwin | CYGWIN* )
VAR="One value for Sun"
DEFAULT_JDK=/usr/local/java/jdk1.2/solaris
FILESEP="/" FILESEP="/"
;; ;;
Linux ) Windows* )
VAR="A different value for Linux"
DEFAULT_JDK=/usr/local/java/jdk1.4/linux-i386
FILESEP="/"
;;
Windows* | CYGWIN* )
VAR="A different value for Win32"
DEFAULT_JDK=/usr/local/java/jdk1.2/win32
FILESEP="\\" FILESEP="\\"
;; ;;
Darwin)
VAR="Lets not forget about Mac"
DEFAULT_JDK=$(/usr/libexec/java_home)
FILESEP="/"
;;
# catch all other OSs # catch all other OSs
* ) * )
echo "Unrecognized system! $OS" echo "Unrecognized system! $OS"
...@@ -113,8 +97,7 @@ if [ -z "${TESTJAVA}" ] ; then ...@@ -113,8 +97,7 @@ if [ -z "${TESTJAVA}" ] ; then
# THIS IS THE JDK BEING TESTED. # THIS IS THE JDK BEING TESTED.
if [ -n "$1" ] ; if [ -n "$1" ] ;
then TESTJAVA=$1 then TESTJAVA=$1
else echo "no JDK specified on command line so using default!" else fail "no JDK specified on command line!"
TESTJAVA=$DEFAULT_JDK
fi fi
TESTSRC=. TESTSRC=.
TESTCLASSES=. TESTCLASSES=.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册