]> git.lizzy.rs Git - rust.git/commit
add `allow_fail` test attribute
authorPaul Woolcock <paul@woolcock.us>
Wed, 24 May 2017 17:58:37 +0000 (13:58 -0400)
committerPaul Woolcock <paul@woolcock.us>
Sat, 24 Jun 2017 10:42:29 +0000 (06:42 -0400)
commit60dd83ea85853f6a31f8998eb80ce47446fdb785
treeff0d9ec1a524726d7d8a2e4fbb2a296216bcffeb
parent229d0d3266002d343cdd2f4a3bf7f2fe9da15f38
add `allow_fail` test attribute

This change allows the user to add an `#[allow_fail]` attribute to
tests that will cause the test to compile & run, but if the test fails
it will not cause the entire test run to fail. The test output will
show the failure, but in yellow instead of red, and also indicate that
it was an allowed failure.
src/librustdoc/html/markdown.rs
src/librustdoc/test.rs
src/libsyntax/feature_gate.rs
src/libsyntax/test.rs
src/libtest/lib.rs
src/test/run-pass/test-allow-fail-attr.rs [new file with mode: 0644]
src/tools/compiletest/src/main.rs