aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java
diff options
context:
space:
mode:
authorGravatar lberki <lberki@google.com>2018-01-10 03:50:32 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-01-10 03:52:35 -0800
commit13abaab801d40800fb8b86f79d81cd1ff860c5a4 (patch)
tree11cadafdab56e05ba0dbb85c4a58b2564b8aef95 /src/test/java
parent1c59e78215f7beaa10229df48f483779ebad8217 (diff)
Remove package loading from JvmConfigurationLoader .
This should not cause a user-visible change: --{host_,}javabase was already required to point to a java_runtime_suite / java_runtime rule, the only change is that we now enforce it differently. If anything, this makes Bazel more lenient in that it now accepts Skylark rules that provide JavaRuntimeInfo, but I doubt anyone does that, since it does not work at HEAD. RELNOTES: None. PiperOrigin-RevId: 181444563
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/analysis/BuildViewTest.java18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/analysis/BuildViewTest.java b/src/test/java/com/google/devtools/build/lib/analysis/BuildViewTest.java
index 955fd9d69c..933cf95d78 100644
--- a/src/test/java/com/google/devtools/build/lib/analysis/BuildViewTest.java
+++ b/src/test/java/com/google/devtools/build/lib/analysis/BuildViewTest.java
@@ -1147,24 +1147,6 @@ public class BuildViewTest extends BuildViewTestBase {
}
@Test
- public void testMissingJavabase() throws Exception {
- // The javabase flag uses yet another code path with its own redirection logic on top of the
- // redirect chaser.
- scratch.file("jdk/BUILD",
- "filegroup(name = 'jdk', srcs = [",
- " '//does/not/exist:a-piii', '//does/not/exist:b-k8', '//does/not/exist:c-default'])");
- scratch.file("does/not/exist/BUILD");
- useConfiguration("--javabase=//jdk");
- reporter.removeHandler(failFastHandler);
- try {
- update(defaultFlags().with(Flag.KEEP_GOING));
- fail();
- } catch (InvalidConfigurationException e) {
- // Expected
- }
- }
-
- @Test
public void testVisibilityReferencesNonexistentPackage() throws Exception {
scratch.file("z/a/BUILD",
"py_library(name='a', visibility=['//nonexistent:nothing'])");