Skip to content

Commit

Permalink
8295164: JDK 8 jdi tests should not use tasklist command on Windows
Browse files Browse the repository at this point in the history
Also enable jdk_tier1 GHA tests on Windows

Reviewed-by: sgehwolf
  • Loading branch information
zzambers authored and jerboaa committed Oct 13, 2022
1 parent 05b249d commit 8280a89
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/submit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,6 @@ jobs:
windows_x64_test:
name: Windows x64
runs-on: "windows-2019"
if: false
needs:
- prerequisites
- windows_x64_build
Expand All @@ -999,15 +998,15 @@ jobs:
matrix:
test:
- jdk/tier1
- langtools/tier1
- hotspot/tier1
# - langtools/tier1
# - hotspot/tier1
include:
- test: jdk/tier1
suites: jdk_tier1
- test: langtools/tier1
suites: langtools_tier1
- test: hotspot/tier1
suites: hotspot_tier1
# - test: langtools/tier1
# suites: langtools_tier1
# - test: hotspot/tier1
# suites: hotspot_tier1

env:
JDK_VERSION: "${{ fromJson(needs.prerequisites.outputs.dependencies).JDK_MAJOR_VERSION }}.${{ fromJson(needs.prerequisites.outputs.dependencies).JDK_MINOR_VERSION }}.${{ fromJson(needs.prerequisites.outputs.dependencies).JDK_MICRO_VERSION }}"
Expand Down Expand Up @@ -1135,7 +1134,6 @@ jobs:
windows_x86_test:
name: Windows x86
runs-on: "windows-2019"
if: false
needs:
- prerequisites
- windows_x86_build
Expand All @@ -1145,15 +1143,15 @@ jobs:
matrix:
test:
- jdk/tier1
- langtools/tier1
- hotspot/tier1
# - langtools/tier1
# - hotspot/tier1
include:
- test: jdk/tier1
suites: jdk_tier1
- test: langtools/tier1
suites: langtools_tier1
- test: hotspot/tier1
suites: hotspot_tier1
# - test: langtools/tier1
# suites: langtools_tier1
# - test: hotspot/tier1
# suites: hotspot_tier1

env:
JDK_VERSION: "${{ fromJson(needs.prerequisites.outputs.dependencies).JDK_MAJOR_VERSION }}.${{ fromJson(needs.prerequisites.outputs.dependencies).JDK_MINOR_VERSION }}.${{ fromJson(needs.prerequisites.outputs.dependencies).JDK_MICRO_VERSION }}"
Expand Down
8 changes: 4 additions & 4 deletions jdk/test/com/sun/jdi/ShellScaffold.sh
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ findPid()
res=$?
;;
Windows* | CYGWIN*)
# Don't use ps on cygwin since it sometimes misses
# some processes (!).
tasklist /NH | $grep " $1 " > $devnull 2>&1
# No longer possible to use tasklist as Cygwin PIDs are no longer
# same as Windows PIDs
$psCmd | $grep '^ *'"$1 " > $devnull 2>&1
res=$?
;;
*)
Expand Down Expand Up @@ -281,7 +281,7 @@ EOF
rm -f $tmpFile
# on mks
grep=egrep
psCmd=ps
psCmd="ps -W"
jstack=jstack.exe
;;
SunOS | Linux | Darwin | AIX)
Expand Down

1 comment on commit 8280a89

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.