Re: [PATCH] Fix mi "-var-create" regression

Tom Tromey
2012-10-17T17:29:34Z

>>>>> "Luis" == Luis Machado <lgustavo@codesourcery.com> writes:

Luis> I thought about this for a while, and the best testing mechanism seems
Luis> to be just turning the "print object" option on by default and running
Luis> the entire testsuite, otherwise this test will be very specific to the
Luis> -var-create mechanism.

I think you'd see a lot of failures doing this.

FWIW I think 'set print object on' should be the default.
It is a FAQ for C++ programmers.
However, I think this would require a lot of annoying test suite
hacking.

Luis> If we're thinking about a regression coverage test, then i agree that
Luis> a test is appropriate in this case, so we can be sure it will never
Luis> happen again.

I think a regression test is both necessary and sufficient.

Tom