Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8161534 | 9 | Gerald Thornbrugh | P4 | Resolved | Fixed | b131 |
The following is from Stefan Sarne and suggests how to resolve the device compilation issue, and also some other improvements for the test:
-------
As stated by Mikael and Leonid, the idea is to let the build step handle the build of test libs as well.
Support for building native libraries was recently added to jdk9 by Magnus in the build-dev. It is currently not possible to pass in flags to the linker. But he agrees it make sense to be able to do and he already has a patch out for adding it. See
It will be possible to add flags per file/lib name.
So in this case there will have to be two versions of test.c, say test-rw.c and test-rwx.c.
On the other hand - hopefully you can get rid of the bash script.
Some other suggestions regarding the test:
- A new and better alternative to "silently pass on non-Linux", is to use the @requires tag.
The test will then be run on Linux, but skipped on other platforms where it isn't applicable.
The benefit is that the risk for thinking that the test is run and passes is reduced.
See hotspot/test/closed/runtime/4475963/Test4475963.sh:8:## @requires os.family=="linux"
- Bug ID as name is awkward to work with. The bug id is available as key in the test so a more descriptive name is preferred.
- Favor java and @run driver over tests written in bash
For example see ./runtime/CommandLine/TestNullTerminatedFlags.java
- backported by
-
JDK-8161534 [TESTBUG] regression Test7107135 needs to remove dependence on locally installed gcc
- Resolved
- relates to
-
JDK-8144278 [TESTBUG] hotspot/runtime/StackGuardPages/testme.sh should use native library build support
- Resolved
-
JDK-8144279 [TESTBUG] hotspot/runtime/jsig/Test8017498.sh should use native library build support
- Resolved
-
JDK-8161696 [TESTBUG] runtime/StackGuardPages/testme.sh uses invalid argument -Xss328k
- Resolved
-
JDK-7107135 Stack guard pages are no more protected after loading a shared library with executable stack
- Closed
-
JDK-8081471 Allow SetupTestFilesCompilation to set LDFLAGS for individual tests
- Resolved