Cleanup up lit_test and require explicit tool paths (#1049)

I think lit_test accrued a bit of cruft as I switched approaches... I still may go further, but this is particularly fixing a bug where `FileCheck` (instead of `%{FileCheck}`) should've failed in tests.
This commit is contained in:
Jon Meow
2022-01-27 16:27:30 -08:00
committed by GitHub
parent 18be5692a3
commit 9009ae5e1b
4 changed files with 21 additions and 46 deletions
@@ -2,7 +2,7 @@
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// RUN: %{not} %{executable_semantics} %s 2>&1 2>&1 | FileCheck %s
// RUN: %{not} %{executable_semantics} %s 2>&1 2>&1 | %{FileCheck} %s
// AUTOUPDATE: %{executable_semantics} %s
// CHECK: COMPILATION ERROR: {{.*}}/executable_semantics/testdata/struct/fail_equality_type.carbon:16: type error in ==
// CHECK: expected: {.x: i32, .y: i32}