menumodel test: don't get stuck in a loop
authorRyan Lortie <desrt@desrt.ca>
Fri, 2 Dec 2011 22:47:34 +0000 (17:47 -0500)
committerRyan Lortie <desrt@desrt.ca>
Thu, 8 Dec 2011 23:05:14 +0000 (18:05 -0500)
commitef8c443092e52e5f4a934c77b1e30a06f59451d9
tree64243092999cfe903dc11cb4b99915c009bcf42d
parent4f2c2077457bcd59ff09b2829b9f25b45e37a515
menumodel test: don't get stuck in a loop

Sometimes randa and randb end up having the same state, causing them to
return the same stream of 'random numbers'.  This is a problem for the
testcase that is looping to find unequal menus.

If we find ourselves in this state, throw one of the random generators
away and recreate it so we have a better chance of getting some unequal
menus.
gio/tests/gmenumodel.c