The test case uses a custom launcher and before launching the JVM, it adds the "lib" and "lib/server" directories to the environment variable which controls the native library search path.
For non server variants, the second directory is not called "lib/server", but "lib/client", for instance. The VM fails to start with the following output:
/home/cgo/dev/openjdk/jdk/build/linux-x86_64-client-fastdebug/images/test/jdk/jtreg/native/CallerAccessTest: error while loading shared libraries: libjvm.so: cannot open shared object file: No such file or directory