We have to define `GTEST_HAS_PTHREAD=1` on aix since there are tests now that 
use gtest's `SCOPED_TRACE` in worker threads which relies on a proper 
implementation of gtest's `ThreadLocal` (see issue).

Testing:


function repro() { \
    local B=`readlink -f .` ; \
    LIBPATH=$B/images/test/hotspot/gtest/server/ \
    $B/images/test/hotspot/gtest/server/gtestLauncher \
    -jdk $B/images/jdk \
    -Xmx200m \
    --gtest_output=xml:test_result.xml \
    --gtest_catch_exceptions=0 \
    --gtest_filter='AtomicAccessBitops.concurrent_uint64_vm' \
    ; \
    }
while repro ; do echo OK ; done 


With the change the issue doesn't reproduce anymore.

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

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

Commit messages:
 - Fix gtests on aix

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

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

Reply via email to