File tree 2 files changed +17
-0
lines changed
src/doc/rustc-dev-guide/src/tests
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,8 @@ found in [`header.rs`] from the compiletest source.
87
87
* [ ` revisions ` ] ( compiletest.md#revisions ) — compile multiple times
88
88
* [ ` forbid-output ` ] ( compiletest.md#incremental-tests ) — incremental cfail rejects output pattern
89
89
* [ ` should-ice ` ] ( compiletest.md#incremental-tests ) — incremental cfail should ICE
90
+ * [ ` known-bug ` ] ( ui.md#known-bugs ) — indicates that the test is
91
+ for a known bug that has not yet been fixed
90
92
* [ Assembly] ( compiletest.md#assembly-tests ) headers
91
93
* ` assembly-output ` — the type of assembly output to check
92
94
Original file line number Diff line number Diff line change @@ -394,6 +394,21 @@ The `ignore-pass` header can be used to ignore the `--pass` CLI flag if the
394
394
test won't work properly with that override.
395
395
396
396
397
+ ## Known bugs
398
+
399
+ The ` known-bug ` header may be used for tests that demonstrate a known bug that
400
+ has not yet been fixed.
401
+ Adding tests for known bugs is helpful for several reasons, including:
402
+
403
+ 1 . Maintaining a functional test that can be conveniently reused when the bug is fixed.
404
+ 2 . Providing a sentinel that will fail if the bug is incidentally fixed.
405
+ This can alert the developer so they know that the associated issue has
406
+ been fixed and can possibly be closed.
407
+
408
+ Do not include [ error annotations] ( #error-annotations ) in a test with ` known-bug ` .
409
+ The test should still include other normal headers and stdout/stderr files.
410
+
411
+
397
412
## Test organization
398
413
399
414
When deciding where to place a test file, please try to find a subdirectory
You can’t perform that action at this time.
0 commit comments