This pr addresses the 2 issues from the bug report.

#### Issue 1: gtestLauncher cannot load libjvm.so

The aix linker does not support $ORIGIN in RPATH.
Fix: prepend images/test/hotspot/gtest/server/ to LIBPATH when testing on aix.

Example test-support/.../gtest.cmdline (added 2 line breaks)


cd /mybuild/test-support/gtest_LogTagSet_server && \    
    LIBPATH=/mybuild/images/test/hotspot/gtest/server:$LIBPATH \    
    /mybuild/images/test/hotspot/gtest/server/gtestLauncher -jdk 
/mybuild/images/jdk --gtest_filter=LogTagSet* 
--gtest_output=xml:/mybuild/test-results/gtest_LogTagSet_server/gtest.xml 
--gtest_catch_exceptions=0 > >(/opt/freeware/bin/tee 
/mybuild/test-results/gtest_LogTagSet_server/gtest.txt) && echo $? > 
/mybuild/test-results/gtest_LogTagSet_server/exitcode.txt || echo $? > 
/mybuild/test-results/gtest_LogTagSet_server/exitcode.txt


#### Issue 2: the nawk regexp parser cannot parse '/='

Fix: escape the '=' character with a backslash.

**Tested** on aix (nawk) and linux (gawk) with and also without gtest failures.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - Fix RunTests.gmk for aix

Changes: https://git.openjdk.org/jdk/pull/33842/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33842&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8396909
  Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/33842.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/33842/head:pull/33842

PR: https://git.openjdk.org/jdk/pull/33842

Reply via email to