mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-01 21:25:57 +01:00
Overall, cleaning up remaining lit uses. #2851 had removed FileCheck invocations from some of the explorer tests; this starts as just restoring that. But, now that we have far fewer `lit` tests, it seems best to refine `lit.cfg.py` to focus on providing fewer commands (not all were even used). Also, adding testing of an error to explorer (which I noticed due to a change that would've broken that) made me notice that autoupdate_lit_test's for_lit logic didn't actually work, so I'm just cutting it and going to manual updates. Really, we might want to just remove lit autoupdate support altogether since it's only a couple tests using it, but I'm not ready to make that change right now. Fixes #2912
15 lines
571 B
Plaintext
15 lines
571 B
Plaintext
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
// Exceptions. See /LICENSE for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
// NOAUTOUPDATE
|
|
// RUN: %{not} %{explorer} | %{FileCheck-strict}
|
|
// RUN: %{not} %{explorer} --parser_debug --trace_file=- | %{FileCheck-allow-unmatched}
|
|
|
|
package ExplorerTest api;
|
|
|
|
// Just needs to produce an error to validate basic structure.
|
|
fn Main() -> i32 {
|
|
// CHECK:STDERR: COMPILATION ERROR: {{.*}}/explorer/lit_testdata/fail_compile_error.carbon:[[@LINE+1]]: {{.*}}
|
|
}
|