Asan/Tsan Unit/Regression testing (was [asan] Emit GIMPLE direclty, small cleanups)

Andrew Pinski pinskia@gmail.com
Mon Nov 12 18:08:00 GMT 2012


On Mon, Nov 12, 2012 at 10:05 AM, Jakub Jelinek <jakub@redhat.com> wrote:
> On Mon, Nov 12, 2012 at 09:32:04AM -0800, Wei Mi wrote:
>> Using setjmp/longjmp to do multiple tests in a single testfile, the
>> test statements in the front could affect the tests in the back. gtest
>> will fork a new process for every test statement. The forked process
>> will do only one test and skip all the other test statements. That is
>> to say, multiple test statements in the same testfile are guaranteed
>> to be independent from each other in gtest. If we use setjmp/longjmp
>> pattern to do the test, existing testsuite may need to be rewritten if
>> their test statements could affect each other.
>
> So you can either run the program multiple times from within dejagnu, or
> fork inside of the macros.  In any case, adding > 5MB of gtest just for that
> single test or two is IMHO really too much, and similarly adding gtest
> as another requirement to build gcc.  Does gtest support all the targets
> that gcc does btw?

Also does gtest support cross testing; that is testing over rsh/ssh
and testing via a simulator?  We should require that as a requirement
also when it comes to testing infrastructures.

Thanks,
Andrew Pinski

>
>         Jakub



More information about the Gcc-patches mailing list