8303822: gtestMain should give more helpful output

Reviewed-by: lmesnik
This commit is contained in:
Matthias Baesken 2023-03-10 08:27:19 +00:00
parent e26cc52600
commit 0f26d09da8

@ -245,7 +245,7 @@ static void runUnitTestsInner(int argc, char** argv) {
char* java_home = get_java_home_arg(argc, argv);
if (java_home == NULL) {
fprintf(stderr, "ERROR: You must specify a JDK to use for running the unit tests.\n");
fprintf(stderr, "ERROR: You must specify a JDK (-jdk <image>, --jdk=<image> or -jdk:<image>) to use for running the unit tests.\n");
os::exit(1);
}
#ifndef _WIN32