[jdk8u-dev] RFR: 8301620: [8u] some shell tests are passed but have unexpected operator errors

Ao Qi aoqi at openjdk.org
Wed Feb 1 17:26:42 UTC 2023


Some `.sh` tests are passed on Linux (with dash, like Ubuntu), but `[: ... unexpected operator` errors could be found when `-verbose:all` is used. 

For example:

TEST: runtime/jsig/Test8017498.sh
TEST JDK: /home/aoqi/work/theaoqi/jdk8u-dev/build/linux-x86_64-normal-server-release/images/j2sdk-image

ACTION: shell -- Failed. Execution failed: exit code 2
REASON: User specified action: run shell/timeout=30 Test8017498.sh 
TIME:   0.108 seconds
messages:
command: shell Test8017498.sh
reason: User specified action: run shell/timeout=30 Test8017498.sh 
elapsed time (seconds): 0.108
STDOUT:
TESTSRC=/home/aoqi/work/theaoqi/jdk8u-dev/hotspot/test/runtime/jsig
TESTJAVA=/home/aoqi/work/theaoqi/jdk8u-dev/build/linux-x86_64-normal-server-release/images/j2sdk-image
COMPILEJAVA=/home/aoqi/work/theaoqi/jdk8u-dev/build/linux-x86_64-normal-server-release/images/j2sdk-image
TESTCLASSES=/home/aoqi/tmp/JTwork/classes/runtime/jsig
NULL =/dev/null
PS =:
FS =/
RM =/bin/rm
CP =/bin/cp
MV =/bin/mv
CLASSPATH =.:/home/aoqi/tmp/JTwork/classes/runtime/jsig:
THIS_DIR=.
VM_TYPE=server
VM_BITS=64
VM_OS=linux
VM_CPU=amd64
Testing on Linux
STDERR:
openjdk version "1.8.0_372-internal"
OpenJDK Runtime Environment (build 1.8.0_372-internal-aoqi_2023_02_01_11_52-b00)
OpenJDK 64-Bit Server VM (build 25.372-b00, mixed mode)

-------------

Commit messages:
 - update copyright year
 - 8301620: [8u] some shell tests are passed but have unexpected operator errors

Changes: https://git.openjdk.org/jdk8u-dev/pull/260/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=260&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8301620
  Stats: 4 lines in 3 files changed: 0 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk8u-dev/pull/260.diff
  Fetch: git fetch https://git.openjdk.org/jdk8u-dev pull/260/head:pull/260

PR: https://git.openjdk.org/jdk8u-dev/pull/260


More information about the jdk8u-dev mailing list