From 5732d9ae77075a842a99cf81df60992610505711 Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Sat, 12 Feb 2022 11:37:59 +0100 Subject: [PATCH] TEMP: Add integration test for fallback toolchain --- src/test/shell/bazel/cc_integration_test.sh | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/test/shell/bazel/cc_integration_test.sh b/src/test/shell/bazel/cc_integration_test.sh index 83cb9a17cba72d..4c924047de6bee 100755 --- a/src/test/shell/bazel/cc_integration_test.sh +++ b/src/test/shell/bazel/cc_integration_test.sh @@ -1456,4 +1456,26 @@ EOF expect_log "fatal error: '\?dep.h'\?" } +function test_fallback_to_non_xcode_toolchain() { + # This test should trivially pass on platforms other than macOS, so there is no need to exclude + # it. + + cat > ok.cc < +int main() { + printf("Hello\n"); +} +EOF + + cat > BUILD <