On Saturday 29 September 2007 12:18:13 Thiago Macieira wrote: > David Jarvie wrote: > >I'm attempting to write a unit test for some changes to the > > KSystemTimeZones class, but when the unit test emits a D-Bus signal, it > > is not picked up by the KSystemTimeZones instance which is instanciated > > within the unit test. When the same signal is emitted by ktimezoned, it > > is picked up by KSystemTimeZones in a different app. Can a D-Bus signal > > be received by the same app which emitted it? If not, is there any way > > round this so that the unit test instance can be made to think it's > > receiving the signal? > > They are received if there's something listening for it. > > Signal reception requires the event loop. How can an event loop be implemented in a unit test based on QTEST_KDEMAIN_CORE? -- David Jarvie. KAlarm author and maintainer. http://www.astrojar.org.uk/kalarm