Skip to content

Commit 92f3f8e

Browse files
JohnTitorpetrochenkov
authored andcommitted
Update pass modes for ui tests (rust-lang#380)
1 parent 7f47c49 commit 92f3f8e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/tests/adding.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ source.
171171
argument is the first version to ignore. If no second argument is
172172
given, all subsequent versions are ignored; otherwise, the second
173173
argument is the last version to ignore.
174-
* `compile-pass` for UI tests, indicates that the test is
175-
supposed to compile, as opposed to the default where the test is
174+
* `build-pass` for UI tests, indicates that the test is supposed to
175+
successfully compile and link, as opposed to the default where the test is
176176
supposed to error out.
177177
* `compile-flags` passes extra command-line args to the compiler,
178178
e.g. `compile-flags -g` which forces debuginfo to be enabled.
@@ -279,7 +279,9 @@ can also make UI tests where compilation is expected to succeed, and
279279
you can even run the resulting program. Just add one of the following
280280
[header commands](#header_commands):
281281

282-
- `// compile-pass` – compilation should succeed but do
282+
- `// check-pass` - compilation should succeed but skip codegen
283+
(which is expensive and isn't supposed to fail in most cases)
284+
- `// build-pass` – compilation and linking should succeed but do
283285
not run the resulting binary
284286
- `// run-pass` – compilation should succeed and we should run the
285287
resulting binary

0 commit comments

Comments
 (0)