• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Testing async code with OCUnit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Testing async code with OCUnit


  • Subject: Testing async code with OCUnit
  • From: Nir Soffer <email@hidden>
  • Date: Thu, 24 Aug 2006 15:07:37 +0300

I'm trying to test code like this:

- (void)testPerformWithFooIfCondition
{
	[foo doSomethingWithCondition:condition];

}

When foo uses code like this:

- (void) doSomethingWithCondition:condition
{
if (condition)
[self preformSelector:@selector(taskDidFinishWithObject:) withObject:bar afterDelay:0.0];
}


However, when this call happen, this test was finished long time ago. I want to the test code to wait for some reasonable time and report a failure if foo did not get the message.

It seems to be impossible with OCUnit.


Best Regards,

Nir Soffer

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Testing async code with OCUnit
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: How to not include function names in dylib?
  • Next by Date: Re: How to not include function names in dylib?
  • Previous by thread: Re: Re: Xcode -replacing source files causes undefined symbols
  • Next by thread: Re: Testing async code with OCUnit
  • Index(es):
    • Date
    • Thread