[Mono.Posix] Workaround signal raising behavior.
authorJonathan Pryor <jonpryor@vt.edu>
Fri, 1 Jun 2012 16:02:49 +0000 (12:02 -0400)
committerJonathan Pryor <jonpryor@vt.edu>
Fri, 1 Jun 2012 16:09:37 +0000 (12:09 -0400)
commit0214d9669ab74cd2f77e53e031560c328b5efbd0
treeb1a3817a8c3df9fb8dc5056163cf3a25aa6b639b
parent395ec9e4485b8428fa5737b9fd78efa9d888c8e7
[Mono.Posix] Workaround signal raising behavior.

The effects of Stdlib.raise() aren't immediate on OS X. The result is
that UnixSignalTest.TestDispose1():

Stdlib.raise (Signum.SIGINT);
Assert.AreEqual (a.Count, 1);

_may_ fail depending on timing.

Insert some Thread.Sleep()s to try to allow the signal to propogate.
mcs/class/Mono.Posix/Test/Mono.Unix/UnixSignalTest.cs