Cross Reference: stringwidth.sh
xref
: /
openjdk7
/
jdk
/
test
/
java
/
awt
/
PrintJob
/
Text
/
stringwidth.sh
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
0
N/A
#!/
bin
/
ksh
-p
0
N/A
#
0
N/A
# @test
0
N/A
# @bug 4692562
0
N/A
# @summary Requirement: Windows with printer installed. It should print with text "Hello World".
0
N/A
# @compile
StringWidth.java
0
N/A
# @run
shell
/
manual
stringwidth.sh
0
N/A
#
0
N/A
OS
=
`
uname
`
0
N/A
0
N/A
status
=
1
0
N/A
checkstatus
()
0
N/A
{
0
N/A
status
=$?
0
N/A
if
[
$status
-
ne
"0"
];
then
0
N/A
exit
"
$status
"
0
N/A
fi
0
N/A
}
0
N/A
0
N/A
# pick up the compiled class files.
0
N/A
if
[ -z
"${TESTCLASSES}"
];
then
0
N/A
CP
=
"."
0
N/A
else
0
N/A
CP
=
"${TESTCLASSES}"
0
N/A
fi
0
N/A
0
N/A
0
N/A
if
[
$OS
=
SunOS
-o
$OS
=
Linux
]
0
N/A
then
0
N/A
exit
0
0
N/A
fi
0
N/A
# Windows
0
N/A
0
N/A
if
[ -z
"${TESTJAVA}"
] ;
then
0
N/A
JAVA_HOME
=../../../../../../
build
/
windows-i586
0
N/A
else
0
N/A
JAVA_HOME
=
$TESTJAVA
0
N/A
fi
0
N/A
0
N/A
$JAVA_HOME
/
bin
/
java
-
cp
"${CP}"
StringWidth
0
N/A
checkstatus
0
N/A
0
N/A
exit
0