0N/A#!/bin/ksh -p
0N/A#
0N/A# @test
0N/A# @bug 4692562
0N/A# @summary Requirement: Windows with printer installed. It should print with text "Hello World".
0N/A# @compile StringWidth.java
0N/A# @run shell/manual stringwidth.sh
0N/A#
0N/AOS=`uname`
0N/A
0N/Astatus=1
0N/Acheckstatus()
0N/A {
0N/A status=$?
0N/A if [ $status -ne "0" ]; then
0N/A exit "$status"
0N/A fi
0N/A }
0N/A
0N/A# pick up the compiled class files.
0N/Aif [ -z "${TESTCLASSES}" ]; then
0N/A CP="."
0N/Aelse
0N/A CP="${TESTCLASSES}"
0N/Afi
0N/A
0N/A
0N/Aif [ $OS = SunOS -o $OS = Linux ]
0N/Athen
0N/A exit 0
0N/Afi
0N/A# Windows
0N/A
0N/Aif [ -z "${TESTJAVA}" ] ; then
0N/A JAVA_HOME=../../../../../../build/windows-i586
0N/Aelse
0N/A JAVA_HOME=$TESTJAVA
0N/Afi
0N/A
0N/A $JAVA_HOME/bin/java -cp "${CP}" StringWidth
0N/A checkstatus
0N/A
0N/Aexit 0