8387985: sun/tools/jstat shell tests fail on platforms that do not support ParallelGC

Reviewed-by: cjplummer, dholmes
This commit is contained in:
Elif Aslan 2026-07-13 16:46:50 +00:00 committed by Sergey Bylokhov
parent d343e6c854
commit 151516fae2
12 changed files with 25 additions and 13 deletions

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 2026, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@ -23,6 +23,7 @@
# @test
# @bug 4990825
# @requires vm.gc.Parallel
# @run shell jstatGcCapacityOutput1.sh
# @summary Test that output of 'jstat -gccapacity 0' has expected line counts

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2013, 2025, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2013, 2026, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@ -23,6 +23,7 @@
# @test
# @bug 4990825
# @requires vm.gc.Parallel
# @run shell jstatGcMetaCapacityOutput1.sh
# @summary Test that output of 'jstat -gcmetacapacity 0' has expected line counts

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 2026, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@ -23,6 +23,7 @@
# @test
# @bug 4990825
# @requires vm.gc.Parallel
# @run shell jstatGcNewCapacityOutput1.sh
# @summary Test that output of 'jstat -gcnewcapacity 0' has expected line counts

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 2026, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@ -23,6 +23,7 @@
# @test
# @bug 4990825
# @requires vm.gc.Parallel
# @run shell jstatGcNewOutput1.sh
# @summary Test that output of 'jstat -gcnew 0' has expected line counts

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 2026, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@ -23,8 +23,9 @@
# @test
# @bug 4990825
# @requires vm.gc.Parallel
# @run shell jstatGcOldCapacityOutput1.sh
# @summary Test that output of 'jstat -gcoldcapcaity 0' has expected line counts
# @summary Test that output of 'jstat -gcoldcapacity 0' has expected line counts
. ${TESTSRC-.}/../../jvmstat/testlibrary/utils.sh

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 2026, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@ -23,6 +23,7 @@
# @test
# @bug 4990825
# @requires vm.gc.Parallel
# @run shell jstatGcOldOutput1.sh
# @summary Test that output of 'jstat -gcold 0' has expected line counts

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 2026, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@ -23,6 +23,7 @@
# @test
# @bug 4990825
# @requires vm.gc.Parallel
# @run shell jstatGcOutput1.sh
# @summary Test that output of 'jstat -gc 0' has expected line counts

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 2026, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@ -23,6 +23,7 @@
# @test
# @bug 4990825
# @requires vm.gc.Parallel
# @run shell jstatLineCounts1.sh
# @summary Test that output of 'jstat -gcutil 0 250 5' has expected line counts

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 2026, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@ -23,6 +23,7 @@
# @test
# @bug 4990825
# @requires vm.gc.Parallel
# @run shell jstatLineCounts2.sh
# @summary Test that output of 'jstat -gcutil 0' has expected line counts

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 2026, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@ -23,6 +23,7 @@
# @test
# @bug 4990825
# @requires vm.gc.Parallel
# @run shell jstatLineCounts3.sh
# @summary Test that output of 'jstat -gcutil -h 10 250 10' has expected line counts

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 2026, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@ -23,6 +23,7 @@
# @test
# @bug 4990825
# @requires vm.gc.Parallel
# @run shell jstatLineCounts4.sh
# @summary Test that output of 'jstat -gcutil -h 10 250 11' has expected line counts

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 2026, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@ -23,6 +23,7 @@
# @test
# @bug 4990825
# @requires vm.gc.Parallel
# @run shell jstatTimeStamp1.sh
# @summary Test that output of 'jstat -gcutil -t 0' has expected format