JDK-6956472 : test/runtime/6888954/vmerrors.sh uses ksh-specific syntax
  • Type: Bug
  • Component: hotspot
  • Sub-Component: test
  • Affected Version: hs19
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2010-05-27
  • Updated: 2012-05-02
  • Resolved: 2011-03-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 Other
6u21pFixed 7Fixed hs19Fixed
Related Reports
Relates :  
Description
Failed during nightly testing:

command: shell vmerrors.sh []
reason: User specified action: run shell vmerrors.sh 
elapsed time (seconds): 0.188
----------System.out:(0/0)----------
----------System.err:(1/126)----------
/export/local/common/testbase/jtreg/HS_REGRESSION/test/runtime/6888954/vmerrors.sh: syntax error at line 68: `i=$' unexpected
result: Failed. Execution failed: exit code 2
This bug affects the following JTREG test in the hotspot repo:

    runtime/6888954/vmerrors.sh

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/5b77884bd4b7
29-05-2010

SUGGESTED FIX diff --git a/test/runtime/6888954/vmerrors.sh b/test/runtime/6888954/vmerrors.sh --- a/test/runtime/6888954/vmerrors.sh +++ b/test/runtime/6888954/vmerrors.sh @@ -65,7 +65,7 @@ done rm -f $$ - i=$(expr $i + 1) + i=`expr $i + 1` done exit $rc
27-05-2010

EVALUATION Line 68 is i=$(expr $i + 1) but $(...) is not recognized by the bourne shell. It should be i=`expr $i + 1`
27-05-2010