]> git.lizzy.rs Git - rust.git/commit
Tidy: allow feature-gate tests to be ui tests
authorest31 <MTest31@outlook.com>
Wed, 6 Dec 2017 08:03:07 +0000 (09:03 +0100)
committerest31 <MTest31@outlook.com>
Thu, 7 Dec 2017 09:11:21 +0000 (10:11 +0100)
commit8ba9f9ecf05df8cf800f928efa72a8300d90240c
tree0350980033332e0a85ee84bb3825902431432b03
parentbd7021fd57ad595711aaaaba03e0a058cf931056
Tidy: allow feature-gate tests to be ui tests

ui tests are the future, especially since the
recent improvement where we have gained
checking and requiring of //~ERROR comments.

The tidy feature-gate test check is intended
to be 50% an actual insurance that there is
a check, and 50% to be a teacher that such
checks are required.

With this commit applied, newbies might
interpret stuff wrongly and create tests
that don't fail but succeed instead.

This is not what feature gate tests are
for though. Therefore, in a later step,
when only ui tests are allowed to be feature
gate tests, we will add checking to ensure
that a file marked as gate test is actually
required to be a compilation failure.

Right now implementing such a check is a
bit annoying as one needs to only do it
when the compile-fail test is in the
ui test suite :/.
src/tools/tidy/src/features.rs