Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8206798 | 12 | Goetz Lindenmaier | P4 | Resolved | Fixed | team |
JDK-8206575 | 11.0.1 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
Tests using the serviceability agent SA fail on platforms where SA is not implemented (aix, s390).
Currently this is TestJmapCore*.
Such tests can be guarded at runtime by checking Platform.shouldSAAttach().
This checks two things: whether SA is imlemented on the platform (if not, returns false) and whether SA can attach to the VM in the current environment (sometimes root privileges are needed).
If SA is not implemented it would be better to not even start the test. This can be achieved by a @requires statement in the test description. This is more efficient and more obvious then only skipping the test at execution time.
This change introduces @requires attribute vm.hasSA and vm.hasSAandCanAttach.
vm.hasSA is true on platforms where SA is port (all but aix and s390).
vm.hasSAandCanAttach is true if SA is ported and can attach to the VM.
The implementation of Platform.shouldSAAttach() is refactored accordingly.
Tests are adapted to use @requires where feasible.
Currently this is TestJmapCore*.
Such tests can be guarded at runtime by checking Platform.shouldSAAttach().
This checks two things: whether SA is imlemented on the platform (if not, returns false) and whether SA can attach to the VM in the current environment (sometimes root privileges are needed).
If SA is not implemented it would be better to not even start the test. This can be achieved by a @requires statement in the test description. This is more efficient and more obvious then only skipping the test at execution time.
This change introduces @requires attribute vm.hasSA and vm.hasSAandCanAttach.
vm.hasSA is true on platforms where SA is port (all but aix and s390).
vm.hasSAandCanAttach is true if SA is ported and can attach to the VM.
The implementation of Platform.shouldSAAttach() is refactored accordingly.
Tests are adapted to use @requires where feasible.
- backported by
-
JDK-8206575 [testbug] TestJmapCore failing without SA: introduce @requires vm.hasSAandCanAttach
-
- Resolved
-
-
JDK-8206798 [testbug] TestJmapCore failing without SA: introduce @requires vm.hasSAandCanAttach
-
- Resolved
-