author | ihse |
Tue, 09 May 2017 12:57:30 +0200 | |
changeset 45028 | b0ea3c0bfb81 |
parent 32675 | 1b2f76f1053d |
permissions | -rw-r--r-- |
32675
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
1 |
#!/bin/ksh -p |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
2 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
3 |
# |
45028
b0ea3c0bfb81
8179889: Fix typographic errors in copyright headers
ihse
parents:
32675
diff
changeset
|
4 |
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
32675
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
5 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
6 |
# |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
7 |
# This code is free software; you can redistribute it and/or modify it |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
8 |
# under the terms of the GNU General Public License version 2 only, as |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
9 |
# published by the Free Software Foundation. |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
10 |
# |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
15 |
# accompanied this code). |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
16 |
# |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
17 |
# You should have received a copy of the GNU General Public License version |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
20 |
# |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
22 |
# or visit www.oracle.com if you need additional information or have any |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
23 |
# questions. |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
24 |
# |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
25 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
26 |
# |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
27 |
# @test EventQueuePushAutoshutdown.sh |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
28 |
# @bug 8081485 |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
29 |
# @summary tests that a program terminates automatically |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
30 |
# after EventQueue.push() |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
31 |
# @author Anton Nashatyrev : area=toolkit |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
32 |
# |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
33 |
# @compile EventQueuePushAutoshutdown.java |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
34 |
# @run shell EventQueuePushAutoshutdown.sh |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
35 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
36 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
37 |
# Beginning of subroutines: |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
38 |
status=1 |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
39 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
40 |
#Call this from anywhere to fail the test with an error message |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
41 |
# usage: fail "reason why the test failed" |
45028
b0ea3c0bfb81
8179889: Fix typographic errors in copyright headers
ihse
parents:
32675
diff
changeset
|
42 |
fail() |
32675
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
43 |
{ echo "The test failed :-(" |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
44 |
echo "$*" 1>&2 |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
45 |
echo "exit status was $status" |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
46 |
exit $status |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
47 |
} #end of fail() |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
48 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
49 |
#Call this from anywhere to pass the test with a message |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
50 |
# usage: pass "reason why the test passed if applicable" |
45028
b0ea3c0bfb81
8179889: Fix typographic errors in copyright headers
ihse
parents:
32675
diff
changeset
|
51 |
pass() |
32675
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
52 |
{ echo "The test passed!!!" |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
53 |
echo "$*" 1>&2 |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
54 |
exit 0 |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
55 |
} #end of pass() |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
56 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
57 |
# end of subroutines |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
58 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
59 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
60 |
# The beginning of the script proper |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
61 |
OS=`uname -s` |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
62 |
case "$OS" in |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
63 |
SunOS | Linux | Darwin | CYGWIN* ) |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
64 |
FILESEP="/" |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
65 |
;; |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
66 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
67 |
Windows_95 | Windows_98 | Windows_NT | Windows_ME ) |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
68 |
FILESEP="\\" |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
69 |
;; |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
70 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
71 |
# catch all other OSs |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
72 |
* ) |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
73 |
echo "Unrecognized system! $OS" |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
74 |
fail "Unrecognized system! $OS" |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
75 |
;; |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
76 |
esac |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
77 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
78 |
|
45028
b0ea3c0bfb81
8179889: Fix typographic errors in copyright headers
ihse
parents:
32675
diff
changeset
|
79 |
# Want this test to run standalone as well as in the harness, so do the |
b0ea3c0bfb81
8179889: Fix typographic errors in copyright headers
ihse
parents:
32675
diff
changeset
|
80 |
# following to copy the test's directory into the harness's scratch directory |
32675
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
81 |
# and set all appropriate variables: |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
82 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
83 |
if [ -z "${TESTJAVA}" ] ; then |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
84 |
# TESTJAVA is not set, so the test is running stand-alone. |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
85 |
# TESTJAVA holds the path to the root directory of the build of the JDK |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
86 |
# to be tested. That is, any java files run explicitly in this shell |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
87 |
# should use TESTJAVA in the path to the java interpreter. |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
88 |
# So, we'll set this to the JDK spec'd on the command line. If none |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
89 |
# is given on the command line, tell the user that and use a cheesy |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
90 |
# default. |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
91 |
# THIS IS THE JDK BEING TESTED. |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
92 |
if [ -n "$1" ] ; |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
93 |
then TESTJAVA=$1 |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
94 |
else fail "no JDK specified on command line!" |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
95 |
fi |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
96 |
TESTSRC=. |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
97 |
TESTCLASSES=. |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
98 |
STANDALONE=1; |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
99 |
fi |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
100 |
echo "JDK under test is: $TESTJAVA" |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
101 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
102 |
#Deal with .class files: |
45028
b0ea3c0bfb81
8179889: Fix typographic errors in copyright headers
ihse
parents:
32675
diff
changeset
|
103 |
if [ -n "${STANDALONE}" ] ; |
b0ea3c0bfb81
8179889: Fix typographic errors in copyright headers
ihse
parents:
32675
diff
changeset
|
104 |
then |
32675
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
105 |
#if standalone, remind user to cd to dir. containing test before running it |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
106 |
echo "Just a reminder: cd to the dir containing this test when running it" |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
107 |
# then compile all .java files (if there are any) into .class files |
45028
b0ea3c0bfb81
8179889: Fix typographic errors in copyright headers
ihse
parents:
32675
diff
changeset
|
108 |
if [ -a *.java ] ; |
32675
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
109 |
then echo "Reminder, this test should be in its own directory with all" |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
110 |
echo "supporting files it needs in the directory with it." |
45028
b0ea3c0bfb81
8179889: Fix typographic errors in copyright headers
ihse
parents:
32675
diff
changeset
|
111 |
${TESTJAVA}/bin/javac ./*.java ; |
32675
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
112 |
fi |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
113 |
# else in harness so copy all the class files from where jtreg put them |
45028
b0ea3c0bfb81
8179889: Fix typographic errors in copyright headers
ihse
parents:
32675
diff
changeset
|
114 |
# over to the scratch directory this test is running in. |
32675
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
115 |
else cp ${TESTCLASSES}/*.class . ; |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
116 |
fi |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
117 |
|
45028
b0ea3c0bfb81
8179889: Fix typographic errors in copyright headers
ihse
parents:
32675
diff
changeset
|
118 |
#if in test harness, then copy the entire directory that the test is in over |
32675
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
119 |
# to the scratch directory. This catches any support files needed by the test. |
45028
b0ea3c0bfb81
8179889: Fix typographic errors in copyright headers
ihse
parents:
32675
diff
changeset
|
120 |
if [ -z "${STANDALONE}" ] ; |
b0ea3c0bfb81
8179889: Fix typographic errors in copyright headers
ihse
parents:
32675
diff
changeset
|
121 |
then cp ${TESTSRC}/* . |
32675
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
122 |
fi |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
123 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
124 |
#Just before executing anything, make sure it has executable permission! |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
125 |
chmod 777 ./* |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
126 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
127 |
############### YOUR TEST CODE HERE!!!!!!! ############# |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
128 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
129 |
#All files required for the test should be in the same directory with |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
130 |
# this file. If converting a standalone test to run with the harness, |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
131 |
# as long as all files are in the same directory and it returns 0 for |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
132 |
# pass, you should be able to cut and paste it into here and it will |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
133 |
# run with the test harness. |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
134 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
135 |
${TESTJAVA}/bin/java EventQueuePushAutoshutdown |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
136 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
137 |
############### END YOUR TEST CODE !!!!! ############ |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
138 |
#Be sure the last command executed above this line returns 0 for success, |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
139 |
# something non-zero for failure. |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
140 |
status=$? |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
141 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
142 |
# pass or fail the test based on status of the command |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
143 |
case "$status" in |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
144 |
0 ) |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
145 |
pass "" |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
146 |
;; |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
147 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
148 |
1 ) |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
149 |
fail "The program didn't automatically shut down" |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
150 |
;; |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
151 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
152 |
* ) |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
153 |
fail "The program terminated unexpectedly!" |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
154 |
;; |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
155 |
esac |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
156 |
|
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
157 |
#For additional examples of how to write platform independent KSH scripts, |
1b2f76f1053d
8081485: EDT auto shutdown is broken in case of new event queue usage
anashaty
parents:
diff
changeset
|
158 |
# see the jtreg file itself. It is a KSH script for both Solaris and Win32 |