aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/analysis
diff options
context:
space:
mode:
authorGravatar lberki <lberki@google.com>2017-10-19 10:12:38 +0200
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2017-10-20 14:04:05 +0200
commitf9a379157d1e992390c5b6f0b75ef853e0870689 (patch)
treedbaa9811fb0b7eb113a0761a9c9e6ac019fb3a43 /src/test/java/com/google/devtools/build/lib/analysis
parente147372b073708631f1366bb2b9086ed413cb0c3 (diff)
Remove OS/Xcode versions (and thus package loading) from AppleConfiguration.Loader.
Fixes #3424. RELNOTES[INC]: Selecting on "xcode_version" and "{ios,tvos,macos,watchos}_sdk_version" is not supported anymore. What was config_setting(values={"$FOO_version": $VALUE}) is now config_setting(flag_values={"@bazel_tools//tools/osx:$FOO_version_flag": $VALUE}). PiperOrigin-RevId: 172714477
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/analysis')
-rw-r--r--src/test/java/com/google/devtools/build/lib/analysis/BuildViewTest.java17
1 files changed, 0 insertions, 17 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 ae217d3b54..b0a5585470 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
@@ -1108,23 +1108,6 @@ public class BuildViewTest extends BuildViewTestBase {
}
@Test
- public void testMissingXcodeVersion() throws Exception {
- // The xcode_version flag uses yet another code path on top of the redirect chaser.
- // Note that the redirect chaser throws if it can't find a package, but doesn't throw if it
- // can't find a label in a package - that's why we use an empty package here.
- scratch.file("xcode/BUILD");
- useConfiguration("--xcode_version=1.2", "--xcode_version_config=//xcode:does_not_exist");
- reporter.removeHandler(failFastHandler);
- try {
- update(defaultFlags().with(Flag.KEEP_GOING));
- fail();
- } catch (InvalidConfigurationException e) {
- assertThat(e).hasMessageThat().contains("//xcode:does_not_exist");
- }
- }
-
-
- @Test
public void testVisibilityReferencesNonexistentPackage() throws Exception {
scratch.file("z/a/BUILD",
"py_library(name='a', visibility=['//nonexistent:nothing'])");