blob: 354cff57c2dfc8ead38b1c998017e8e959d7d548 [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001#!/bin/ksh -p
2#
3# @test
4# @bug 4692562
5# @summary Requirement: Windows with printer installed. It should print with text "Hello World".
6# @compile StringWidth.java
7# @run shell/manual stringwidth.sh
8#
9OS=`uname`
10
11status=1
12checkstatus()
13 {
14 status=$?
15 if [ $status -ne "0" ]; then
16 exit "$status"
17 fi
18 }
19
20# pick up the compiled class files.
21if [ -z "${TESTCLASSES}" ]; then
22 CP="."
23else
24 CP="${TESTCLASSES}"
25fi
26
27
28if [ $OS = SunOS -o $OS = Linux ]
29then
30 exit 0
31fi
32# Windows
33
34if [ -z "${TESTJAVA}" ] ; then
35 JAVA_HOME=../../../../../../build/windows-i586
36else
37 JAVA_HOME=$TESTJAVA
38fi
39
40 $JAVA_HOME/bin/java -cp "${CP}" StringWidth
41 checkstatus
42
43exit 0