On Fri, Nov 09, 2012 at 11:05:37AM -0800, Wei Mi wrote: > gtest integrate multiple tests into the same file with each test being > a single line check. I cannot think out a method to migrate it to > dejagnu without using gtest, except splitting a single gtest file to > multiple files with each file per test. asan has about 130 tests so > have to write 130 files which will be a doable but painful task.
See the glibc _FORTIFY_SOURCE check I've referenced, there it is 3 lines per test expected to crash, but could be done in a single macro too. If the failure can be intercepted, it can be done in a single process (e.g. SIGABRT can, _exit can't that easily), otherwise perhaps say way to skip previous tests and communicate with dejagnu how many times it should run the executable. Jakub