8247573: gtest/GTestWrapper.java is not helpful if gtest framework is missing

Reviewed-by: erikj, iignatyev
This commit is contained in:
Magnus Ihse Bursie 2020-06-24 23:45:01 +02:00
parent 1e45eb3b13
commit 2ad638621c

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -57,7 +57,7 @@ public class GTestWrapper {
.resolve(jvmVariantDir); .resolve(jvmVariantDir);
} }
if (!path.toFile().exists()) { if (!path.toFile().exists()) {
throw new Error("TESTBUG: the library has not been found in " + nativePath); throw new Error("TESTBUG: the library has not been found in " + nativePath + ". Did you forget to use --with-gtest to configure?");
} }
Path execPath = path.resolve("gtestLauncher" + (Platform.isWindows() ? ".exe" : "")); Path execPath = path.resolve("gtestLauncher" + (Platform.isWindows() ? ".exe" : ""));