<div dir="ltr">Right, but I don't agree in this case that "different" has to mean "we discourage the use of reduced test cases". I have a hard time imagining a scenario where not having reduced test cases is an advantage. It's also easy to explain to people. "Write reduced test cases". It's easy to understand. Moreso than "Reduced test cases are good, but not always because fuzziness, but we can't really put into words exactly what amount of fuzziness we want, or what it should look like, so I guess anything goes - don't ask don't tell".<br><div><br></div><div>If we want fuzziness, we should do fuzz testing. Feature tests and regression tests should be reduced. The whole reason the tests in lldb/tests were written is because people were testing a specific feature or bugfix. I don't see a reason to add fuzziness to this kind of test. All it does is pollute failure logs. Fuzziness is better tested by fuzz tests.</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jan 21, 2016 at 11:46 AM Jim Ingham <<a href="mailto:jingham@apple.com">jingham@apple.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> On Jan 21, 2016, at 10:17 AM, Zachary Turner <<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>> wrote:<br>
><br>
> zturner added a comment.<br>
><br>
> Sure, an interface change to Process might break the mock, but it would break at compile time, you just fix it up. It's not something that would happen frequently, this is the same situation going on in LLVM where there are unit tests, sometimes they break, and people fix them. But it's never been an issue because it doesn't happen often.<br>
><br>
> I know there are different opinions about what type of tests to write and how reduced they should be, but in this case I'm simply following the LLVM guidelines for writing test cases, which we supposed to adhere to. <a href="http://llvm.org/docs/DeveloperPolicy.html#test-cases" rel="noreferrer" target="_blank">http://llvm.org/docs/DeveloperPolicy.html#test-cases</a> (except for obvious differences about how it uses lit, etc)<br>
<br>
I do not think that we should be restricted to guidelines for testing that are meant for a very different kind of program. You don't stop a compiler midway through a compile, drop into the "compiler command line", add a few more lines of code and a couple of functions, change some compiler options and continue. You give it input, and collect the output or errors. But you do the functionally equivalent thing in the debugger all the time. So the way you test things is going to be very different.<br>
<br>
Jim<br>
<br>
<br>
><br>
><br>
> <a href="http://reviews.llvm.org/D16334" rel="noreferrer" target="_blank">http://reviews.llvm.org/D16334</a><br>
><br>
><br>
><br>
<br>
</blockquote></div>