On Thu, Apr 4, 2013 at 9:16 AM, Kornel Benko <kor...@lyx.org> wrote:
> Am Donnerstag, 4. April 2013 um 08:57:50, schrieb Scott Kostyshak
> <skost...@lyx.org>
>
>> > This one works too (for this test)
>
>> >
>
>> > TestEnd test ! -e ../bug-8370.lyx.emergency
>
>> >
>
>> >
>
>> >
>
>> > because we are always removing ../bug-8370.lyx.emergency prior to test.
>
>>
>
>> That looks good and safe. I wonder if that also works for the tests
>
>> under autotools. I think so because the .lyx file should be in the
>
>> same (relative) place.
>
>
>
> In single-test.sh:
>
> rm $BASE.lyx.emergency
>
> so, it may work there too.
>
>
>
>>
>
>> As a note to myself when I re-read this thread:
>
>> Another strategy is to try to do something in LyX after the crash does
>
>> or does not happen. For example, insert a character and test that the
>
>> character was inserted (by grepping the log).
>
>
>
> Your idea is better. You have of course set the appropriate dbg-level.

True. And this makes this way not as nice because the developer would
have to set the dbg-level, do an extra LFUN, and then do a grep. If we
want others to write tests, we need to make this process more simple.

One way would be to have a script that generates a test. All the
developer would have to do is pass that script a command-sequence that
causes a crash and this script could generate the appropriate test
file. This would be easy to write.

Scott

Reply via email to