Mercurial > hg > openjdk7.svn
view j2se/test/java/awt/PrintJob/Text/stringwidth.sh @ 2:16f2b6c91171 trunk
[svn] Load openjdk/jdk7/b14 into jdk/trunk.
author | xiomara |
---|---|
date | Fri, 22 Jun 2007 00:46:43 +0000 |
parents | |
children |
line wrap: on
line source
#!/bin/ksh -p # # @test # @bug 4692562 # @summary Requirement: Windows with printer installed. It should print with text "Hello World". # @compile StringWidth.java # @run shell/manual stringwidth.sh # OS=`uname` status=1 checkstatus() { status=$? if [ $status -ne "0" ]; then exit "$status" fi } # pick up the compiled class files. if [ -z "${TESTCLASSES}" ]; then CP="." else CP="${TESTCLASSES}" fi if [ $OS = SunOS -o $OS = Linux ] then exit 0 fi # Windows if [ -z "${TESTJAVA}" ] ; then JAVA_HOME=../../../../../../build/windows-i586 else JAVA_HOME=$TESTJAVA fi $JAVA_HOME/bin/java -cp "${CP}" StringWidth checkstatus exit 0