Page 1 of 1

Mutations and infinite loops

Posted: Sat Jan 19, 2008 2:16 pm
by Ambush Commander
I was thinking about this the other day... so here it is: What if a mutation creates an infinite loop? How would you make sure the mutation doesn't run too long?

Re: Mutations and infinite loops

Posted: Sat Jan 19, 2008 3:00 pm
by Maugrim_The_Reaper
In Mutation Testing?

For PHPMutagen at least it, when finished (currently has a nasty maximum process count bug, let alone infinite loops from running it!), will run the tests/spec suite for each mutation in a new PHP process which will carry an optional time limit for a) overall execution, and b) each executed test. Even without these the running process will terminate once the maximum time limit set in php.ini is reached. PHPMutagen would take the lack of a passing reponse as an escaped Mutant and report it from the parent process.