[llvm-dev] [cfe-dev] Rotten Green Tests project (original) (raw)
James Henderson via llvm-dev llvm-dev at lists.llvm.org
Mon Mar 1 00:32:22 PST 2021
- Next message: [llvm-dev] [cfe-dev] Rotten Green Tests project
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The overall concept seems interesting to me. Anything that helps reduce problems in tests that could obscure bugs etc is worth a good consideration, in my opinion.
On Fri, 26 Feb 2021 at 18:47, via cfe-dev <cfe-dev at lists.llvm.org> wrote:
Well... actually... it is ON by default; however, I turn it off in lit. So, if you run
check-llvm
or usellvm-lit
to run unittests, they won't report rotten green tests. However, if you run a program directly, it will report them (and cause the test program to exit with a failure status). This seemed like a reasonable balance that would make RGT useful while developing a test, without interfering with automation.When writing googletest unit tests, I almost always run the test executable directly. This is because it's by far the easiest way to run the test and debug in Visual Studio ("Set startup project" -> F5). I wouldn't be happy if this started showing up false test failures in some form or other, unless someone can point at an equally simple way of doing the same thing.
James -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210301/2a57ec07/attachment.html>
- Next message: [llvm-dev] [cfe-dev] Rotten Green Tests project
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]