Ho do I launch hotspot gtests?

Mikael Gerdin mikael.gerdin at oracle.com
Thu Dec 1 11:57:11 UTC 2016


Hi Thomas,



On 2016-12-01 12:44, Thomas Stüfe wrote:
> Hi all,
>
> a small question, what is the correct way to execute the hotspot gtests?

The easiest way is to run
$ make test-hotspot-gtest
in the build directory for your configuration

in my case that directory is
jdk9/hs/build/linux-x64/debug
but the name depends on your configure command line.

/Mikael

>
> I find that I can run <libjvm.so>/gtestLauncher and it will execute the
> tests, is that the normal way to go?
>
> But it then always requires a jdk argument, which seems odd considering the
> gtest launcher is located right beside the libjvm.so and so should know the
> jdk directory.
>
> Also, running the test a second time I get a crash (on windows) in
> LogFileOutput.invalid_file_test:
>
> #
> #  Internal Error
> (c:\d031900\openjdk\jdk9-hs2\source\hotspot\test\native\logging\logTestUtils.inline.hpp:52),
> pid=16488, tid=11288
> #  assert(!file_exists(name)) failed: can't create directory: tmplogdir
> already exists
> #
>
> which looks to me that some cleanup steps are missing and that maybe I do
> things the wrong way.
>
> Thanks for clarifying,
>
> Thomas
>


More information about the hotspot-dev mailing list